/* ================================
   PAKDAILYCAREER - STYLESHEET
   style.css
================================ */

:root {
  --navy: #0b4d2c;
  --blue: #3ca52d;
  --light: #eef8ee;
  --white: #ffffff;
  --gray: #5a6a8a;
  --border: #dce8dc;
  --gov: #146b3a;
  --accent: #1f7a34;
  --accentLight: #e1f5e1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #ffffff;
  color: var(--navy);
  overflow-x: hidden;
  width: 100%;
}

video {
  max-width: 100%;
  height: auto;
}

/* Content images only — not header logo */
main img,
.section img,
.hero img,
.card img,
.job-card img,
footer img {
  max-width: 100%;
  height: auto;
}

header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(31, 122, 52, 0.1);
  border-bottom: 2px solid var(--light);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  position: relative;
  gap: 12px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 52px);
  overflow: hidden;
}

.logo-img,
.logo img {
  height: 56px;
  width: auto;
  max-height: 62px;
  max-width: 68px;
  min-width: 0;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo-word {
  font-family: 'Fredoka', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo-word .pak {
  color: var(--navy);
}

.logo-word .daily {
  color: var(--blue);
}

.logo-word .career {
  color: var(--navy);
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 24px 52px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 77, 44, 0.65);
  /* Reduced opacity green overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.6vw, 46px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero h1 span {
  color: #7ee08a;
}

.hero p {
  color: #ffffff;
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.search-box {
  background: var(--white);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(31, 122, 52, 0.15);
  border: 1.5px solid var(--border);
  align-items: stretch;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  min-width: 0;
}

.search-box input {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 10px 36px 10px 16px;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  background: transparent;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--light);
  color: var(--gray);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.search-clear:hover {
  background: var(--border);
  color: var(--navy);
}

.search-box select {
  border: none;
  outline: none;
  font-size: 14px;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  background: var(--light);
  border-radius: 10px;
  cursor: pointer;
  min-width: 140px;
  max-width: 200px;
}

.search-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--navy);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--blue);
}

.stat-label {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
  font-weight: 500;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  width: 100%;
  box-sizing: border-box;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
}

.section-title span {
  color: var(--blue);
}

.see-all {
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--blue);
  padding-bottom: 1px;
}

.divider {
  height: 1px;
  background: var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 16px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  display: block;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(31, 122, 52, 0.12);
  border-color: var(--blue);
}

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  margin: 0 auto 12px;
  background: rgba(31, 122, 52, 0.14);
  color: var(--accent);
}

.cat-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--navy);
}

.cat-count {
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
}

.filter-tabs-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  margin-bottom: 28px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 0%;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding: 2px 18px 6px 2px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  text-align: center;
}

.filter-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.filter-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ================================
   JOB CARDS — responsive grid
================================ */
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

.job-card {
  width: 100%;
  min-width: 0;
  background: var(--white);
  border-radius: 20px;
  padding: 24px 24px 24px 20px;
  border: 1.5px solid #a8dba1;
  border-left: 5px solid #6fc477;
  transition: all 0.2s;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
}

.jobs-grid>[id$='Jobs'] {
  display: none !important;
}

.job-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 16px 40px rgba(31, 122, 52, 0.18);
  border-color: var(--blue);
  border-left-color: var(--blue);
  z-index: 2;
}

.job-card:hover .job-title {
  color: var(--blue);
}

.job-card-logo {
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.job-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.job-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.job-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.job-badge {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 100px;
  text-transform: uppercase;
}

.badge-gov,
.badge-private,
.badge-intern,
.badge-scholar,
.badge-loan {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.job-card .job-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.job-org {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 14px;
  font-weight: 500;
}

.job-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.jpost {
  background: var(--light);
  border: 1px solid var(--border);
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 6px;
  transition: color 0.2s;
}

.jpost-more {
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.meta-item {
  background: var(--light);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
  transition: color 0.2s;
}

.job-card:hover .jpost,
.job-card:hover .meta-item {
  color: var(--blue);
}

.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.deadline {
  font-size: 16px;
  color: var(--gray);
}

.deadline strong {
  color: #c0392b;
}

.deadline strong.open {
  color: var(--gov);
}

.apply-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(31, 122, 52, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.apply-btn:hover {
  background: var(--navy);
}

.search-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--light);
  border: 1.5px dashed var(--border);
  border-radius: 20px;
  margin-top: 8px;
}

.search-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.85;
}

.search-empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.search-empty-hint {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 20px;
}

.search-empty-reset {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, color 0.2s;
}

.search-empty-reset:hover {
  background: var(--blue);
  color: #fff;
}

footer {
  background: #0b4d2c;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

footer p {
  color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-logo .pak {
  color: #fff;
}

.footer-logo .daily {
  color: #7ee08a;
}

.footer-logo .career {
  color: #fff;
}

.footer-copy {
  margin-top: 12px;
  color: #ffffff;
}

.footer-copy strong {
  color: #7ee08a;
}

.footer-links {
  margin: 0 auto 24px auto;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  /* Separator line between links and logo */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  /* Modern spacing */
  font-size: 15px;
  /* Slightly larger words */
  max-width: 1000px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.footer-links a:hover {
  color: #7ee08a;
  text-decoration: underline;
}

/* Mobile & small tablet */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  #mainNav,
  .page-home nav {
    display: none !important;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(31, 122, 52, 0.15);
    padding: 8px 0;
    z-index: 102;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  #mainNav.open,
  .page-home nav.open {
    display: flex !important;
  }

  #mainNav a,
  .page-home nav a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--light);
    white-space: normal;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }

  #mainNav a:last-child,
  .page-home nav a:last-child {
    border-bottom: none;
  }

  .page-home .header-inner {
    flex-wrap: nowrap;
  }

  .logo .logo-img,
  .logo img {
    height: 48px;
    max-height: 50px;
    max-width: 60px;
  }

  .logo {
    max-width: calc(100% - 52px);
    gap: 8px;
  }

  .logo-word {
    font-size: 26px;
    line-height: 1.1;
  }

  .hero {
    padding: 48px 16px 56px;
    overflow: hidden;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 36px);
    white-space: normal;
  }

  .hero p {
    font-size: 15px;
    padding: 0 4px;
  }

  .search-box {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .search-input-wrap,
  .search-box input,
  .search-box select,
  .search-btn {
    width: 100%;
  }

  .search-box select {
    max-width: none;
  }

  .search-btn {
    padding: 14px 24px;
  }

  .section {
    padding: 36px 16px;
    width: 100%;
    max-width: 100%;
  }

  .filter-tabs-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .jobs-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .job-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: none;
    grid-column: 1 / -1;
    gap: 14px;
  }

  .job-card-logo {
    width: 88px;
    height: 88px;
    padding: 10px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 24px;
  }

  .job-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .apply-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
}

@media (max-width: 600px) {
  .footer-links {
    gap: 16px;
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .job-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .job-card-logo {
    margin-bottom: 4px;
  }

  .job-card-body {
    width: 100%;
    align-items: center;
  }

  .job-top {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .job-posts,
  .job-meta {
    justify-content: center;
  }

  .job-footer {
    flex-direction: column;
    gap: 14px;
  }

  .apply-btn {
    width: 100%;
  }
}


/* Desktop / large tablet — full width single column */
@media (min-width: 901px) {
  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .job-card {
    padding: 24px 210px 24px 24px;
    position: relative;
  }

  .job-footer {
    position: absolute;
    right: 24px;
    top: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    margin: 0;
    padding: 0;
    border: none;
    width: auto;
    transform: none;
  }

  .job-card .job-title {
    font-size: 18px;
  }
}

/* Small laptop / large tablet */
@media (min-width: 900px) {
  .header-inner {
    padding: 0 24px;
  }

  .logo-img {
    height: 56px;
  }
}

/* Desktop nav always visible */
@media (min-width: 901px) {
  nav {
    display: flex;
  }
}

/* Mobile menu backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 77, 44, 0.45);
  z-index: 99;
}

.nav-backdrop.show {
  display: block;
}

body.menu-open {
  overflow: hidden;
}



@media (max-width: 480px) {
  .header-inner {
    height: 64px;
  }

  .logo .logo-img,
  .logo img {
    height: 40px;
    max-height: 42px;
    max-width: 50px;
  }

  .logo {
    gap: 6px;
  }

  .logo-word {
    font-size: 22px;
  }

  .job-card {
    padding: 18px 14px 18px 12px;
    border-radius: 16px;
    gap: 12px;
  }

  .job-card-logo {
    width: 76px;
    height: 76px;
    padding: 8px;
  }

  .job-card .job-title {
    font-size: 16px;
  }

  .filter-tab {
    font-size: 12px;
    padding: 7px 14px;
  }
}

/* ================================
   JOB DETAIL PAGE
================================ */

.detail-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 24px;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .sep {
  color: var(--border);
}

.breadcrumb .current {
  color: var(--navy);
  font-weight: 700;
}

/* Job header (no card / no logo) */
.job-detail-header {
  padding: 0;
  margin-bottom: 28px;
}

.job-detail-info {
  flex: 1;
  min-width: 0;
}

.job-detail-info .job-badge {
  margin-bottom: 10px;
  display: inline-block;
}

.job-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 6px;
}

.job-detail-org {
  font-size: 17px;
  color: var(--gray);
  font-weight: 500;
}

.job-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.job-header-left {
  flex: 1;
  min-width: 240px;
}

.job-quickfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.job-top-deadline {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: linear-gradient(135deg, #0b4d2c, #1f7a34);
  border-radius: 14px;
  padding: 12px 24px;
  color: #fff;
  flex-shrink: 0;
}

.job-top-deadline .td-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.job-top-deadline .td-date {
  font-size: 20px;
  font-weight: 800;
}

@media (min-width: 641px) {
  .job-top-deadline {
    display: none !important;
  }
}

.sidebar-deadline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(135deg, #0b4d2c, #1f7a34);
  color: #fff;
  padding: 6px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(31, 122, 52, 0.18);
  margin-top: 12px;
  box-sizing: border-box;
  text-align: center;
}

.sidebar-deadline .sd-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  font-weight: 700;
}

.sidebar-deadline .sd-date {
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .sidebar-deadline {
    display: none !important;
  }
}

.quickfact {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
}

.quickfact .qf-icon {
  font-size: 15px;
}

/* Two column layout */
.job-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.job-detail-main {
  min-width: 0;
}

.detail-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 22px;
}

.detail-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section h2 .sec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.detail-section p {
  font-size: 17px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 12px;
  text-align: justify;
  text-justify: inter-word;
}

.detail-section p:last-child {
  margin-bottom: 0;
}

.detail-subheading {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 18px 0 10px;
}

.detail-subheading:first-of-type {
  margin-top: 0;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-list li {
  font-size: 17px;
  color: #333;
  line-height: 1.6;
  padding-left: 26px;
  position: relative;
}

.detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}

.apply-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.apply-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  font-size: 17px;
  color: #333;
  line-height: 1.6;
}

.apply-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vacancy table */
.vacancy-table-wrap {
  overflow-x: auto;
}

.vacancy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.vacancy-table th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  white-space: nowrap;
}

.vacancy-table th:first-child {
  border-radius: 10px 0 0 0;
}

.vacancy-table th:last-child {
  border-radius: 0 10px 0 0;
}

.vacancy-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #333;
}

.vacancy-table tr:last-child td {
  border-bottom: none;
}

.vacancy-table tr:nth-child(even) td {
  background: var(--light);
}

.vacancy-table td.seats {
  font-weight: 700;
  color: var(--accent);
}

/* Important dates */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.date-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.date-box .date-label {
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.date-box .date-value {
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
}

.date-box.urgent .date-value {
  color: #c0392b;
}

/* Sidebar */
.job-detail-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.sidebar-card .sc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.sidebar-heading {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-heading .sec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.sidebar-deadline {
  background: linear-gradient(135deg, #0b4d2c, #1f7a34);
  border-radius: 14px;
  padding: 18px;
  color: #fff;
  margin-bottom: 16px;
  text-align: center;
}

.sidebar-deadline .sd-label {
  font-size: 12px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.sidebar-deadline .sd-date {
  font-size: 20px;
  font-weight: 800;
}

.sidebar-apply-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(31, 122, 52, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 122, 52, 0.4);
}

.sidebar-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-fact:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-fact .sf-label {
  color: var(--gray);
}

.sidebar-fact .sf-value {
  color: #1a1a1a;
  font-weight: 700;
  text-align: right;
}

.share-row {
  display: flex;
  gap: 10px;
}

.share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--light);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Related jobs */
.related-jobs-section {
  margin-top: 40px;
}

.related-jobs-section .section-title {
  margin-bottom: 20px;
}

.related-jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-job-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.related-job-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(60, 165, 45, 0.15);
}

.related-job-card:hover .rjc-title {
  color: var(--blue);
}

.related-job-card .rjc-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.related-job-card .rjc-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.related-job-card .rjc-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
}

/* Mobile sticky apply bar */
.mobile-apply-bar {
  display: none;
}

@media (max-width: 900px) {
  .job-detail-layout {
    grid-template-columns: 1fr;
  }

  .job-detail-sidebar {
    position: static;
  }

  .related-jobs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .detail-page-wrap {
    padding: 20px 16px 100px;
  }

  .job-detail-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 24px 20px;
  }

  .job-header-top {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .job-header-left {
    min-width: 0;
  }

  .job-quickfacts {
    justify-content: flex-start;
  }

  .job-detail-title {
    font-size: 22px;
  }

  .job-top-deadline {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #0b4d2c, #1f7a34);
    border-radius: 14px;
    padding: 12px 24px;
    box-shadow: 0 4px 16px rgba(31, 122, 52, 0.15);
    width: 100%;
    margin-top: 16px;
    margin-bottom: 8px;
  }

  .job-top-deadline .td-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
  }

  .job-top-deadline .td-date {
    font-size: 22px;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    margin-top: 4px;
  }

  .detail-section {
    padding: 20px;
  }

  .dates-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-apply-btn {
    display: none;
  }

  .sidebar-card:has(.sidebar-apply-btn) {
    display: none;
  }

  .mobile-apply-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 998;
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08);
  }

  .mobile-apply-bar .mab-info {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.3;
  }

  .mobile-apply-bar .mab-info strong {
    display: block;
    font-size: 19px;
    color: #c0392b;
    margin-top: 2px;
  }

  .mobile-apply-bar .sidebar-apply-btn {
    display: block;
    width: auto;
    padding: 12px 24px;
    flex-shrink: 0;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(31, 122, 52, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s, background-color 0.2s;
  transform: translateY(10px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(11, 77, 44, 0.4);
}

.back-to-top:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* ==========================================================================
   FINANCING OPTIONS COMPONENT
   ========================================================================== */

.financing-options-container {
  border: 2px solid #2e7d32;
  border-radius: 16px;
  padding: 32px 20px 24px;
  margin: 40px 0 30px;
  position: relative;
  background-color: #fcfdfc;
}

.financing-options-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #0b4d2c;
  color: #ffffff;
  padding: 8px 24px;
  border-radius: 50px;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(11, 77, 44, 0.2);
  z-index: 10;
}

.financing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.financing-card {
  border-radius: 12px;
  padding: 28px 16px 20px;
  text-align: center;
  position: relative;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.financing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Specific Card Themes */
.financing-card.theme-green {
  border: 1.5px solid #2e7d32;
}
.financing-card.theme-blue {
  border: 1.5px solid #1565c0;
}
.financing-card.theme-orange {
  border: 1.5px solid #e65100;
}

/* Card badges */
.card-badge {
  position: absolute;
  top: -12px;
  padding: 4px 16px;
  border-radius: 20px;
  color: #ffffff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.financing-card.theme-green .card-badge {
  background-color: #2e7d32;
}
.financing-card.theme-blue .card-badge {
  background-color: #1565c0;
}
.financing-card.theme-orange .card-badge {
  background-color: #e65100;
}

/* SVG illustrations */
.card-illustration {
  margin: 15px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Texts */
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 4px;
  text-transform: uppercase;
}
.financing-card.theme-green .card-title {
  color: #2e7d32;
}
.financing-card.theme-blue .card-title {
  color: #1565c0;
}
.financing-card.theme-orange .card-title {
  color: #e65100;
}

.card-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.card-description {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.4;
  margin-top: auto;
}

/* Bottom features box */
.financing-features-box {
  margin-top: 30px;
  border: 1.5px solid #dce8dc;
  border-radius: 12px;
  background-color: #ffffff;
  padding: 16px 8px;
}

.financing-features-list {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
}

.feature-item {
  flex: 1 1 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
}

/* Dividers for larger screens */
@media (min-width: 768px) {
  .feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #e2e8f0;
  }
}

.feature-icon-wrap {
  margin-bottom: 8px;
}

.feature-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .financing-cards-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }
  .financing-card {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }
  .feature-item {
    flex: 1 1 40%;
  }
}

@media (max-width: 600px) {
  .financing-options-header {
    font-size: 12px;
    padding: 6px 16px;
    width: 90%;
    text-align: center;
  }
  .feature-item {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   LATEST BLOG SECTION STYLES
   ========================================================================== */
.blog-section {
  background: #eef8ee; /* Soft background to match the site's design */
  border-radius: 20px;
  padding: 40px 24px;
  margin: 10px auto 60px auto;
  max-width: 1200px;
  width: calc(100% - 48px);
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}



.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  gap: 20px;
  width: 100%;
}

.blog-card-wide {
  grid-column: span 2;
}

.blog-card-wide .blog-card-img {
  height: 190px;
  aspect-ratio: auto;
  overflow: hidden;
}

.blog-card-wide .blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-card-wide .blog-card-title {
  height: auto;
  min-height: 44px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .blog-card-wide .blog-card-img {
    height: 150px;
  }
}

.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(31, 122, 52, 0.12);
  border-color: rgba(60, 165, 45, 0.2);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 65px; /* Fixed height for title alignment */
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-title:hover {
  color: var(--blue);
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  width: 100%;
}

.blog-read-more-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.blog-read-more-btn:hover {
  background: var(--accent);
}

.blog-read-more-btn:active {
  transform: scale(0.97);
}

.blog-card-date {
  font-size: 14px;
  color: var(--gray);
  font-weight: 600;
}

/* Responsive Blog Grid */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .blog-section {
    width: calc(100% - 32px);
    padding: 30px 16px;
    margin: 30px auto 40px auto;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile view as requested */
    gap: 12px;
  }
  .blog-card-title {
    font-size: 13px;
    height: 57px;
  }
  .blog-read-more-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  .blog-card-date {
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr); /* Ensure it stays 2 columns on small mobile as requested */
    gap: 8px;
  }
  .blog-card-body {
    padding: 10px;
  }
  .blog-card-title {
    font-size: 12px;
    height: 52px;
    margin-bottom: 10px;
  }
  .blog-read-more-btn {
    padding: 5px 8px;
    font-size: 10px;
  }
  .blog-card-date {
    font-size: 11.5px;
  }
}

/* ==========================================================================
   JOB LOGOS CAROUSEL STYLE
   ========================================================================== */
.logo-carousel-section {
  padding: 10px 0 40px 0;
  margin-bottom: 30px;
  overflow: hidden;
}

.logo-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  position: relative;
}

.logo-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.logo-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.logo-item {
  flex: 0 0 calc((100% - 48px) / 4); /* 4 items on desktop (3 gaps of 16px = 48px) */
  width: calc((100% - 48px) / 4);
  max-width: calc((100% - 48px) / 4);
  min-width: 0; /* Prevents long text or wide content from overflowing flex item */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  user-select: none;
  box-sizing: border-box;
}

.logo-item:hover {
  transform: translateY(-5px);
}

.logo-circle {
  width: 125px;
  height: 125px;
  max-width: 100%;
  max-height: 125px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.logo-item:hover .logo-circle {
  box-shadow: 0 8px 20px rgba(31, 122, 52, 0.15);
  border-color: var(--blue);
}

.logo-circle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.logo-name {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}

.logo-item:hover .logo-name {
  color: var(--blue);
}

.logo-carousel-btn {
  background-color: var(--light);
  border: 2px solid var(--blue);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(60, 165, 45, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--navy);
  position: absolute;
  top: calc(50% - 22px);
  z-index: 10;
  outline: none;
}

.logo-carousel-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.logo-carousel-btn.prev-btn {
  left: 16px;
}

.logo-carousel-btn.next-btn {
  right: 16px;
}

.logo-carousel-btn:hover {
  background-color: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 6px 14px rgba(60, 165, 45, 0.3);
  transform: scale(1.1);
}

/* Offset margins for container to keep arrows outside the viewport */
@media (min-width: 1250px) {
  .logo-carousel-viewport {
    margin: 0 50px;
  }
  .logo-carousel-btn.prev-btn {
    left: 0px;
  }
  .logo-carousel-btn.next-btn {
    right: 0px;
  }
}

@media (max-width: 1249px) {
  .logo-carousel-viewport {
    margin: 0 54px;
  }
  .logo-carousel-btn.prev-btn {
    left: 4px;
  }
  .logo-carousel-btn.next-btn {
    right: 4px;
  }
}

/* Responsive slider item sizes */
@media (max-width: 1024px) {
  .logo-item {
    flex: 0 0 calc((100% - 32px) / 3); /* 3 items on tablet */
    width: calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
  }
  .logo-circle {
    width: 110px;
    height: 110px;
    max-height: 110px;
    padding: 10px;
  }
}

@media (max-width: 767px) {
  .logo-carousel-section {
    padding: 0 0 24px 0;
    margin-bottom: 20px;
  }
  .logo-item {
    flex: 0 0 calc((100% - 16px) / 2); /* 2 items on mobile */
    width: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }
  .logo-circle {
    width: 95px;
    height: 95px;
    max-height: 95px;
    padding: 8px;
  }
  .logo-name {
    font-size: 11px;
    margin-top: 6px;
  }
  .logo-carousel-btn {
    width: 36px;
    height: 36px;
    top: calc(50% - 18px);
  }
  .logo-carousel-btn svg {
    width: 16px;
    height: 16px;
  }
  .logo-carousel-viewport {
    margin: 0 44px;
  }
  .logo-carousel-btn.prev-btn {
    left: 2px;
  }
  .logo-carousel-btn.next-btn {
    right: 2px;
  }
}

/* ==========================================================================
   VIEW ALL BUTTON CUSTOM STYLE (Uiverse.io by vikiWayne)
   ========================================================================== */
#viewAllBtn {
  padding: 1em 2em;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  letter-spacing: 5px;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--accent);
  transition: all 1000ms;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  outline: 2px solid var(--accent);
  background: transparent;
  display: inline-block;
}

#viewAllBtn:hover {
  color: #ffffff;
  transform: scale(1.1);
  outline: 2px solid var(--blue);
  box-shadow: 0 4px 15px rgba(31, 122, 52, 0.4);
}

#viewAllBtn::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent);
  transform: skewX(45deg);
  z-index: -1;
  transition: width 1000ms;
}

#viewAllBtn:hover::before {
  width: 250%;
}