/* Google Fonts and Reset */
body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  color: #2c3e50;
  background-color: #fff;
  scroll-behavior: smooth;
}
body, html {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1; 
}
:root {
  --primary-color: #0d2f57;
  --accent-color: #1c5b9b;
  --light-gray: #f5f7fa;
  --hover-color: #17497b;
  --transition-speed: 0.3s;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Header */
header {
  background-color: white;
  color: var(--primary-color);
  padding: 10px 5px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Wrapper */
.nav-hover-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0rem;
  flex-wrap: wrap;
}

.language-switcher {
  order: 0;
  margin-right: auto;
}

html[dir="rtl"] .nav-hover-wrapper {
  flex-direction: row-reverse;
}

html[dir="rtl"] .language-switcher {
  order: -1;
}

/* Language Selector */
#language-select {
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#language-select:hover {
  background-color: #f0f0f0;
  border-color: #888;
}

#language-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}



/* Hover Nav Menu */
.nav-menu {
  display: none;
  flex-direction: column;
  background-color: rgba(25, 62, 105, 0.9);
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  text-align: center;
  z-index: 1000;
}
@media (max-width: 768px) {
  .nav-menu {
    width: 100%; /* good */
    
  }
  
  body[dir="ltr"] .nav-menu {
    right: 0 !important;
    left: auto !important;
  }

  body[dir="rtl"] .nav-menu {
    right: 0 !important;
    left: auto !important;
  }
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.nav-links li {
  margin: 10px 0;
}

.nav-links li a {
  display: block;
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 15px 20px;
  transition: background 0.3s ease;
}

.nav-links li a:hover {
  background-color: var(--hover-color);
}

/* Submenu */
.has-submenu .submenu {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.9);
  transition: max-height 0.4s ease;
  list-style: none;
}

.has-submenu:hover .submenu {
  max-height: 300px;
}

.submenu li a {
  padding: 12px 20px;
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.9);
  transition: background 0.3s ease;
  display: block;
}

.submenu li a:hover {
  background-color: var(--light-gray);
  color: var(--accent-color);
}

/* Default Hero Section Styles */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d2f57, #1c5b9b, #f5f7fa);
}

.hero-text {
  position: absolute;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1.3;
  text-transform: uppercase;
  animation: fadeInUp 2s ease both;
}

.hero-text p {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 10px;
  animation: fadeInUp 1s ease both;
}

.hero-text h4 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 10px;
  animation: fadeInUp 1s ease both;
}
.hero-text h1,
.hero-text p,
.hero-text h4,
.ticker a {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}
.logo {
  width: 300px;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  filter: brightness(2.5);
  opacity: 0.9;
  animation: fadeInUp 2s ease both;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-bg .slide.active {
  opacity: 1;
}

/* Hero Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text.fade-out {
  animation: fadeAway 1.5s ease forwards;
}

@keyframes fadeAway {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
  }
}

/* === Mobile Styles === */
@media (max-width: 768px) {
  .hero {
    height: 280px;
    overflow: visible;
    padding: 60px 20px;
    flex-direction: column;
  }

  .hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .hero-bg .slide {
    object-fit: contain;
  }

  .hero-text {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: white;
  }

  .hero-text h1 {
    font-size: 1.3rem !important;
    margin-bottom: 8px;
  }

  .hero-text p {
    font-size: 0.95rem !important;
    margin-bottom: 6px;
  }

  .hero-text h4 {
    font-size: 0.8rem !important;
    margin-bottom: 4px;
  }

  .logo {
    max-width: 120px;
    margin-bottom: 20px;
  }

  .nav-menu {
    width: 100vw;
    right: 0;
    left: 0;
    margin-top: 0;
  }

  

  .nav-links li {
    margin: 10px 0;
  }
}


/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes ticker-slide {
  from { transform: translateX(-100%); }  /* Start off-screen left */
  to { transform: translateX(100%); }     /* End off-screen right */
}

@keyframes ticker-slide-rtl {
  from { transform: translateX(-100%); }  /* RTL: start off-screen left */
  to { transform: translateX(0); }        /* RTL: end at normal position */
}
.live-news-ticker {
  justify-content: flex-end; /* pushes label to the right */
}

.live-label {
  order: 2; /* ensures it appears after the ticker */
  margin-left: 20px; /* spacing between ticker and label */
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* News Ticker */
.live-news-ticker {
  display: flex;
  align-items: center;
  background-color: #f5f7fa;
  padding: 8px 0;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  direction: ltr;
  min-width: 65%;
  max-width: 70%;
  margin-right: auto;
  visibility: visible !important;
  opacity: 1 !important;
}


.ticker-wrapper {
  overflow: hidden;
  flex: 1;
}

.ticker {
  display: flex;
  animation: ticker-slide 20s linear infinite;
}

.ticker a {
  margin-right: 50px;
  color: #0d2f57;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
}

.ticker a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}
html[dir="ltr"] .live-news-ticker {
  display: flex !important;
}



/* Sections */
.section {
  position: relative; /* create stacking context */
  z-index: 0;         /* lower than nav-menu */
  padding: 40px 20px;
  
}

.section h2 {
  position: relative;
  color: var(--primary-color);
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.section h2:hover {
  transform: scale(1.05);
  color: var(--hover-color);
}

.section h2::after {
  content: "";
  width: 50%;
  height: 3px;
  background-color: var(--accent-color);
  position: absolute;
  bottom: -10px;
  left: 25%;
}

.section h2:hover::after {
  width: 100%;
  left: 0;
}

/* Contact */
#contact p a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

#contact p a:hover {
  text-decoration: underline;
}


/* Campus Buttons */
.campus-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.campus {
  background-color: #0d2f57;
  color: white;
  text-align: center;
  padding: 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  width: 30%;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  font-size: clamp(14px, 2.5vw, 18px); /* Flexible font size */
}

.campus:hover {
  background-color: #1c5b9b;
}

/* Medium screens (tablets/small desktops) */
@media (max-width: 1024px) {
  .campus {
    width: 45%; /* Two per row */
  }
}

/* Small screens (phones) */
@media (max-width: 600px) {
  .campus {
    width: 48%; /* Still two per row */
    padding: 15px;
    font-size: clamp(13px, 3vw, 16px); /* More flexible on smaller screens */
  }
}


/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: var(--accent-color);
}

/* Make sure all elements include padding/border in width */
*,
*, *::before, *::after {
  box-sizing: border-box;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem; /* Slightly smaller, more flexible */
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .logo {
    max-width: 160px;  /* max-width instead of fixed width */
    width: 40vw;       /* relative width */
    height: auto;
  }

  .nav-menu {
    position: absolute;
    z-index: 1000;
    width: 100%; /* Use 100% not 100vw to avoid horizontal scroll */
    left: 0;
    right: 0;
  }


  .nav-hover-wrapper {
    flex-direction: column;
    gap: 0px;
    padding: 0 0px; /* add some horizontal padding */
    
  }

  .nav-toggle {
    order: 1;
  }

  .language-switcher {
    order: 2;
    max-width: 25%;  /* reasonable max width */
        /* responsive width */
    min-width: 10%;  /* don’t shrink too small */
  }
}

/* RTL Flip Support */
html[dir="rtl"] .nav-hover-wrapper {
  flex-direction: row-reverse;
}

html[dir="rtl"] .language-switcher {
  order: -1; /* changed from 1 */
}

/* Language Selector Styling */

#language-select:hover {
  background-color: #f0f0f0;
  border-color: #888;
}

#language-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Burger Icon */
.nav-toggle {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1000;
  margin-left: auto;
  margin-right: 0;
  padding: 0px;
  width: 48px;
  height: 48px;
  max-width: 10%;
}
/* The three lines */
.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color); /* matches theme */
  transition: all 0.3s ease;
  border-radius: 2px;
}

html[dir="ltr"] .nav-toggle {
  order: 1;
  margin-left: auto;
  margin-right: 0;
}

html[dir="rtl"] .nav-toggle {
  order: 1;
  
  margin-left: 0;
}
/* Hover Menu */
.nav-menu {
  display: flex;
  flex-direction: column;
  background-color: rgba(25, 62, 105, 0.9);
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  padding-top: 10px;
  z-index: 1000;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 0s 1s;
  margin-top: 0px;
}

.nav-toggle:hover + .nav-menu,
.nav-menu:hover {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in-out, visibility 0s 0s;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.nav-links li {
  text-align: center;
  margin: 20px 0;
}

.nav-links li a {
  display: block;
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 15px 20px;
  transition: background 0.3s ease;
}

.nav-links li a:hover {
  background-color: var(--hover-color);
}

/* Submenu */
.has-submenu {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.has-submenu .submenu {
  max-height: 0;
  overflow: hidden;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  flex-direction: column;
  transition: max-height 0.4s ease;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: right;
  border-top: 1px solid #eaeaea;
}

.has-submenu:hover .submenu {
  max-height: 300px;
}

.submenu li a {
  padding: 12px 20px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: normal;
  transition: background-color 0.3s ease;
  border-top: 1px solid #f0f0f0;
}

.submenu li a:hover {
  background-color: var(--light-gray);
  color: var(--accent-color);
}

.has-submenu > a {
  border-bottom: 1px solid #ddd;
}



.dot.active {
  background: #fff;
  transform: scale(1.3);
  font-weight: bold;
}
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* initially hidden, shown later via JS */
  gap: 10px;
  z-index: 3;
}

.slider-dots.show {
  display: flex;
}

.slider-dots .dot {
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: bold;
  color: #fff;
}

.slider-dots .dot.active {
  background-color: #fff;
  transform: scale(1.4);
}

@media (max-width: 600px) {
  .section {
    padding: 30px 15px;
  }
}
/* Contact Section */
#contact p a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

#contact p a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  display: block;
  background: #9f9c9c;
  color: white;
  padding: 20px;
  font-size: 14px;
  position: relative;
  z-index: 999;
  width: 100%;
  text-align: center;
  height: 11vh;
  
}
footer .container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

footer p {
  margin: 0;
  word-wrap: break-word;
}

/* Optional: improve for very small devices */
@media (max-width: 480px) {
  footer {
    padding: 15px 10px;
    
    width: 100%;
    max-height: 40%;
  }

  footer p {
    font-size: 13px;
  }
}

.social-sidebar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: rgba(13, 47, 87, 0.9);
  z-index: 1000;
  border-radius: 0 8px 8px 0;
  padding: 5px 0;
  width: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-sidebar a {
  display: block;
  color: white;
  font-size: 22px;
  margin: 8px 0;
  text-align: center;
  transition: transform 0.3s ease;
}

.social-sidebar a:hover i {
  transform: scale(1.3);
  color: #b0c2d2;
}

.sidebar-logo {
  width: 28px;
  height: auto;
  transition: transform 0.3s ease;
}

.sidebar-logo:hover {
  transform: scale(1.2);
}

/* ✅ Ensure it never disappears in mobile view */
@media (max-width: 768px) {
  .social-sidebar {
    position: fixed !important;
    top: 40% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    width: 40px;
    padding: 4px 0;
    z-index: 1100;
    display: flex;
  }

  .social-sidebar a {
    font-size: 20px;
    margin: 6px 0;
  }

  .sidebar-logo {
    width: 24px;
  }
}


.social-sidebar a:has(.sidebar-logo) {
  margin-bottom: 0;
}

.social-sidebar .sidebar-logo:hover {
  transform: scale(1.2);
}


/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--accent-color);
}

/* REMOVE THIS or adjust it properly */
@media (max-width: 768px) {
  .live-news-ticker {
    display: flex !important;
    min-width: 30%;
    max-width: 60%;
  }
}
/* Hide ticker only in Arabic (if needed) */


/* Or show only in LTR languages */
html[dir="ltr"] .live-news-ticker {
  display: flex !important;
}



.live-label {
  background-color: #1c5b9b;
  color: white;
  padding: 0.5% 2%;
  border-radius: 4px;
  font-size: 0.85rem;
  flex-shrink: 0;
  animation: pulse 1s infinite;
  max-width: 18%;
}

.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-slide-ltr 25s linear infinite;
  white-space: nowrap;
}

html[dir="rtl"] .ticker {
  animation: ticker-slide-rtl 25s linear infinite;
}

.ticker a {
  display: inline-block;
  margin-right: 50px;
  color: #0d2f57;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.ticker a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}


html[dir="rtl"] .live-label {
  margin-right: 0px;
  margin-left: 3px;
}


.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}
/* WhatsApp Floating Button */
/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 15px;
  left: 15px;
  background: #1c5b9b;
  color: white;
  font-size: 26px;
  padding: 14px;
  border-radius: 50%;
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
  z-index: 10000;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Mobile View Adjustment */
@media (max-width: 768px) {
  .whatsapp-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    bottom: 60px !important;
    max-lines: 60px;
    left: 15px !important;
    z-index: 99999 !important; /* super high to stay on top */
  }
}
.jobs-section {
  padding: 0rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0rem auto;
  max-width: 1400px;
  width: 100%;
  height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.no-jobs {
  padding: 30px 20px;
  background-color: #f9f9f9;
  border: 2px dashed #ccc;
  border-radius: 8px;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


.no-jobs-message {
  font-size: 1.5rem;
  color: #888;
  text-align: center;
}

/* Light aqua nav background just for tawzifat page */
.tawzifat-page header {
  background-color:#dfddeb; /* light aqua */
}
.job-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center; /* ✅ Add this */
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Job Card */
.job-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.job-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}
/* Job Content */
.job-content {
  flex: 1;
  padding: 0.5rem;
}

.job-title {
  font-size: 2rem;
  color: #333;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.job-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.apply-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  color: #fff;
  background-color: #007bff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 4%;
}

.apply-button:hover {
  background-color: #0056b3;
}

/* QR Section */

.qr-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.qr-image:hover {
  transform: scale(1.05); /* QR hover effect */
}
/* QR Section */
.qr-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  border-left: 1px solid #f0f0f0;
 background-color: #f7f4f4;
  text-align: center;
  width: 300px;
  margin-left: 2%;
}

.qr-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.qr-image:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .jobs-section {
    padding: 0.5rem;
    height: auto;
    margin-top: 2%;
  }

  .job-card {
    max-width: 100%;
    height: auto;
    padding: 0rem;
    flex-direction: column;
      flex-wrap: wrap;
      margin: 0;
  }

  .job-title {
    font-size: 1.2rem;
    margin-bottom: 0rem;
  }

  .job-description,
  .job-deadline {
    font-size: 0.95rem;
    margin-bottom: 0rem;
    line-height: 1.4;
    padding: 0rem;
        margin-top: 0rem;

  }

  .job-fields {
    padding-left: 1.2rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .job-fields li {
    margin-bottom: 0.4rem;
  }

  .apply-button {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    margin-top: 0.5rem;
  }

  .qr-section {
    order: 2;
    margin-top: 0rem;
    padding: 0.5rem 0;
  }

  .qr-section p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .qr-image {
    width: 130px;
    height: 130px;
  }

  .job-cards-container {
    padding: 0px;
    margin: 0px;
  }
  .job-content {
  flex: 1;
  padding-left: 0.5rem;
}
}
.job-description,
.job-title,
.job-deadline,
.job-fields,
.job-fields li {
  white-space: normal; /* ensure text wraps */
  word-wrap: break-word; /* break long words */
  overflow-wrap: break-word;
}
