:root {
  --red: #C0392B;
  --white: #FFFFFF;
  --navy: #2C3E50;
  --gray: #ECF0F1;
  --beige: #CD2027;  /* Changed from #FAD7A0 to #CD2027 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
}

.top-bar {
  background: var(--red);
  height: 40px;
  display: flex;
  align-items: center;
}

.top-bar-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  padding: 0 1rem;
}

.top-bar-content span {
  color: var(--white);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInRight 0.8s ease-out;
  animation-fill-mode: backwards;
}

.top-bar-content span:nth-child(2) {
  animation-delay: 0.2s;
}

.logo-section {
  padding: 1.5rem 0;
  background: var(--white);
}

.logo-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  animation: fadeIn 1s ease-out;
}

.logo {
  max-width: 200px;
  height: auto;
}

.tagline {
  color: var(--navy);
  font-size: 0.9rem;
  max-width: 400px;
  text-align: right;
}

.nav-bar {
  height: 60px;
  background: var(--gray);
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
  display: flex;
  align-items: center;
  position: relative;
}

.nav-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease-in-out;
}

.nav-link:hover {
  color: var(--red);
}

.nav-link:hover::after {
  width: 100%;
}

.divisions-btn {
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  animation: subtle-float 3s ease-in-out infinite;
}

.divisions-btn:hover {
  background: var(--beige);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 32, 39, 0.3);
}

.hero {
  height: calc(100vh - 160px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../assets/images/hero.png') center/cover;
}

.hero-content {
  text-align: center;
  color: var(--white);
  padding: 2rem;
  animation: fadeIn 1.2s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.hero-btn {
  background: var(--red);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  animation: subtle-float 3s ease-in-out infinite;
}

.hero-btn:hover {
  background: var(--beige);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(205, 32, 39, 0.4);
}

.hero-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(205, 32, 39, 0.3);
}

/* Welcome Section Styles */
.welcome-section {
  padding: 6rem 1rem;
  background: var(--white);
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 1.2s ease-out;
}

.welcome-title {
  color: #CD2027; /* Changed from #b89466 */
  font-size: 2.8rem; /* Reduced from larger size */
  font-weight: 700;
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
  animation: fadeIn 1.2s ease-out;
}

.welcome-description {
  color: #333333;
  font-size: 1.2rem; /* Reduced from larger size */
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 2rem;
  animation: fadeIn 1.4s ease-out;
}

.welcome-details {
  color: #333333;
  font-size: 1.1rem; /* Reduced from larger size */
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 3rem;
  animation: fadeIn 1.6s ease-out;
}

.learn-more-btn {
  display: inline-block;
  color: #CD2027; /* Changed from #b89466 */
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 2px solid #CD2027; /* Changed from #b89466 */
  transition: all 0.3s ease;
  animation: fadeIn 1.8s ease-out;
}

.learn-more-btn:hover {
  background: #CD2027; /* Changed from #b89466 */
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 32, 39, 0.2); /* Adjusted shadow color */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cta-banner {
  background: #CD2027; /* Changed from #b89466 */
  padding: 2rem 0;
  text-align: center;
  color: #FFFFFF;
  animation: fadeIn 1s ease-out;
}

.cta-banner h2 {
  font-size: 2rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.latest-positions {
  padding: 4rem 0;
  background: var(--white);
}

.latest-positions h2 {
  text-align: center;
  color: #333333;
  margin-bottom: 3rem;
  font-size: 2.2rem;
}

.positions-grid {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 3rem;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.position-row {
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.position-row:hover {
  background-color: #f8f8f8;
}

.position-cell {
  padding: 1.2rem 1rem;
  text-align: left;
}

.position-cell.position-action {
  text-align: right;
  width: 150px;
}

.position-details-cell {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  color: #666;
  margin-top: 0.5rem;
}

.position-title {
  color: #333;
  font-weight: 600;
  font-size: 1.6rem;
  max-width: 80%;
}

.position-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.position-action {
  text-align: right;
}

.more-details {
  color: #CD2027;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.more-details:hover {
  color: #aa1a20;
}

.view-all-btn {
  display: block;
  width: fit-content;
  margin: 2rem auto;
  background: #CD2027;
  color: #FFFFFF;
  padding: 1rem 2rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #aa1a20;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(205, 32, 39, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .latest-positions {
    padding: 2rem 1rem;
  }

  .latest-positions h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .position-cell {
    padding: 0.8rem 0.5rem;
  }

  .position-cell.position-action {
    width: auto;
    text-align: center;
  }

  .position-details-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .position-title {
    font-size: 1rem;
  }

  .position-detail {
    font-size: 0.8rem;
  }

  .more-details {
    font-size: 0.9rem;
  }

  .view-all-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}


.main-footer {
  background: #333333;
  color: #FFFFFF;
  padding: 2rem 0;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-icon {
  color: #FFFFFF;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-icon.facebook:hover { color: #1877F2; }
.social-icon.instagram:hover { color: #E4405F; }
.social-icon.linkedin:hover { color: #0A66C2; }
.social-icon.twitter:hover { color: #1DA1F2; }

@media (max-width: 768px) {
  .top-bar-content {
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.5rem;
    height: auto;
  }

  .top-bar {
    height: auto;
  }

  .logo-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .tagline {
    text-align: center;
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .nav-bar {
    height: auto;
    padding: 1rem 0;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1000;
  }

  .nav-content {
    padding: 3rem 1rem 1rem;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 2rem;
    gap: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.8s ease-in-out;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    transition: transform 0.8s ease-in-out;
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    transition: transform 0.8s ease-in-out;
  }

  .divisions-btn {
    margin-top: 1rem;
    margin: 0;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .hero-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .welcome-section {
    padding: 4rem 1rem;
  }

  .welcome-title {
    font-size: 2.2rem;
  }

  .welcome-description {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .welcome-details {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .positions-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-banner h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .top-bar-content span {
    font-size: 12px;
  }

  .logo {
    max-width: 150px;
  }

  .tagline {
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .welcome-title {
    font-size: 1.8rem;
  }

  .welcome-description {
    font-size: 1rem;
  }

  .welcome-details {
    font-size: 0.9rem;
  }
}

/* Professional Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes subtle-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced button interactions */
.hero-btn:active, .divisions-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(205, 32, 39, 0.3);
}