/* Reset and base styles for navbar only */
.rp-nav * { box-sizing: border-box; }
.rp-nav ul { margin: 0; padding: 10; list-style: none; }

/* Body padding to accommodate fixed navbar */
body {
  padding-top: 120px !important;
}

/* Ensure all page-specific body classes have proper spacing */
body.news-events-page,
body.about-page,
body.ecosystem-page,
body.contact-page,
body.opportunities-page,
body.partners-page {
  padding-top: 120px !important;
}

/* Navbar container */
.rp-nav {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000; /* High z-index to stay above everything */
  height: 120px !important; /* Fixed height */
}

/* Inner flex container */
.rp-nav__inner {
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 40px;
  flex-wrap: nowrap;
  /* max-width: 1920px;  */
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Brand group (logo + text) */
.rp-nav__brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0; /* Changed from 1 to 0 to prevent shrinking */
}

/* Logo */
.rp-nav__logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Brand text */
.rp-nav__brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex-shrink: 0;
  margin-left: 4px;
}
.rp-nav__brand--title {
  font-size: 32px;
  color: #D2042D;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  margin-bottom: 2px;
}
.rp-nav__brand--subtitle {
  font-size: 20px;
  color: #274472;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

/* Nav links container */
.rp-nav__links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  height: 100%;
  margin: 0 auto;
}

/* Individual nav links */
.rp-nav__links a {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 4px;
  white-space: nowrap;
  position: relative;
  height: auto;
  display: inline-block;
}

/* Hover state */
.rp-nav__links a:hover:not(.active) {
  color: #274472;
  background-color: rgba(39, 68, 114, 0.05);
}

/* Focus states */
.rp-nav__links a:focus {
  outline: none;
}
.rp-nav__links a:focus-visible {
  outline: 2px solid #274472;
  outline-offset: 2px;
}

/* Active state styling */
.partners-page .rp-nav__links a[href="partners.html"],
.home-page .rp-nav__links a[href="index.html"],
.about-page .rp-nav__links a[href="about-us.html"],
.ecosystem-page .rp-nav__links a[href="ecosystem.html"],
.news-events-page .rp-nav__links a[href="news-events.html"],
.opportunities-page .rp-nav__links a[href="opportunity.html"],
.contact-page .rp-nav__links a[href="contact.html"] {
  color: #274472;
  background-color: rgba(39, 68, 114, 0.1);
  /* font-weight: 600; */
  box-shadow: 0 0 0 2px #274472;
}

/* CTA button */
.rp-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #D2042D;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid #D2042D;
  background: transparent;
  transition: all 0.2s;
  padding: 8px 20px; /* Increased padding for better appearance */
  margin-left: 0px; /* Increased margin */
  height: auto;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 140px; /* Increased minimum width */
  max-width: 180px; /* Increased maximum width */
  flex-shrink: 0; /* Prevent shrinking */
}
.rp-nav__cta:hover {
  background: #D2042D;
  color: #fff;
}

/* Responsive styles for navbar */
/* Larger screens adjustments */
/* @media (min-width: 1401px) {
  .rp-nav__inner {
    padding: 0 32px;
    gap: 20px;
  }
  .rp-nav__cta {
    min-width: 160px;
    max-width: 200px;
    font-size: 17px;
    padding: 10px 24px;
    margin-left: 20px;
  }
} */

/* Large screen adjustments */
@media (min-width: 2200px) {
  .rp-nav__inner {
    padding: 0 60px;
  }
  .rp-nav__links {
    gap: 20px;
  }
  .rp-nav__links a {
    font-size: 20px;
    padding: 12px 24px;
  }
}

/* Medium screen adjustments */
@media (max-width: 1500px) {
  .rp-nav__inner {
    padding: 0 20px;
    gap: 10px;
  }
  .rp-nav__logo {
    width: 70px;
    height: 70px;
  }
  .rp-nav__brand--title {
    font-size: 30px;
  }
  .rp-nav__brand--subtitle {
    font-size: 18px;
  }
  .rp-nav__links {
    gap: 16px;
  }
  .rp-nav__links a {
    font-size: 17px;
    padding: 8px 2px;
  }
  .rp-nav__cta {
    font-size: 16px;
    min-width: 140px;
    padding: 10px 20px;
    margin-left: 0px;
  }
}

@media (max-width: 1200px) {
  .rp-nav__inner {
    padding: 0 20px;
    gap: 10px;
  }
  .rp-nav__logo {
    width: 65px;
    height: 65px;
  }
  .rp-nav__brand--title {
    font-size: 28px;
  }
  .rp-nav__brand--subtitle {
    font-size: 16px;
  }
  .rp-nav__links {
    gap: 12px;
  }
  .rp-nav__links a {
    font-size: 16px;
    padding: 8px 2px;
  }
  .rp-nav__cta {
    font-size: 15px;
    min-width: 130px;
    padding: 8px 16px;
    margin-left: 0px;
  }
}

@media (max-width: 1100px) {
  body,
  body.news-events-page,
  body.about-page,
  body.ecosystem-page,
  body.contact-page,
  body.opportunities-page {
    padding-top: 30px;
  }
  
  .rp-nav__inner {
    flex-direction: row;
    align-items: center;
    height: 50px;
    padding: 0 0px;
    gap: 10px;
  }
  .rp-nav__logo {
    width: 42px;
    height: 42px;
  }
  .rp-nav__brand--title {
    font-size: 24px;
  }
  .rp-nav__brand--subtitle {
    font-size: 16px;
  }
  .rp-nav__links {
    gap: 5px;
    flex-wrap: nowrap;
  }
  .rp-nav__links a {
    font-size: 14px;
    padding: 4px 5px;
  }
  .rp-nav__cta {
    font-size: 13px;
    height: auto;
    min-width: 100px;
    max-width: 120px;
    padding: 6px 14px;
    margin-left: 0px;
    margin-right:14px ;
  }
}

@media (max-width: 1000px) {
  .rp-nav__cta {
    font-size: 10px;
    min-width: 80px;
    max-width: 100px;
    padding: 6px 10px;
    margin-left: 0px;
    margin-right: 12px;
  }
  .rp-nav ul{
    padding:0px
  }
}

@media (max-width: 900px) {
  body,
  body.news-events-page,
  body.about-page,
  body.ecosystem-page,
  body.contact-page,
  body.opportunities-page {
    padding-top: 80px !important;
  }
  
  .rp-nav {
    height: 80px !important;
  }
  
  .rp-nav__inner {
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
    position: relative;
  }
  .rp-nav__brand-group {
    gap: 8px;
  }
  .rp-nav__logo {
    width: 50px;
    height: 50px;
  }
  .rp-nav__brand--title {
    font-size: 20px;
  }
  .rp-nav__brand--subtitle {
    font-size: 14px;
  }
  
  /* Hide Get in Touch button on mobile */
  .rp-nav__cta {
    display: none;
  }
  
  /* Hamburger positioning */
  .rp-nav__hamburger {
    display: flex !important;
    margin-left: auto;
    order: 3;
  }
  
  /* Mobile menu sliding from right */
  .rp-nav__links {
    display: flex;
    position: fixed;
    top: 80px; /* Match navbar height */
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: calc(100vh - 80px); /* Adjust for new navbar height */
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 20px 0;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    overflow-y: auto;
    visibility: hidden;
  }
  
  .rp-nav__links.active {
    right: 0;
    padding: 10px;
    visibility: visible;
  }
  
  .rp-nav__links li {
    margin: 0;
    pointer-events: auto !important;
  }
  
  .rp-nav__links a {
    font-size: 18px;
    padding: 15px 25px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    color: #333 !important;
    text-decoration: none !important;
    display: block;
    position: relative;
    z-index: 1002;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  
  .rp-nav__links a:hover {
    background-color: #f8f8f8;
    color: #D2042D !important;
  }
}

@media (max-width: 700px) {
  .rp-nav__logo {
    width: 38px;
    height: 38px;
  }
  .rp-nav__brand--title {
    font-size: 15px;
  }
  .rp-nav__brand--subtitle {
    font-size: 11px;
  }
  .rp-nav__inner {
    padding: 0 12px;
  }
  .rp-nav__links {
    width: 75%;
    max-width: 280px;
  }
  .rp-nav__links a {
    font-size: 16px;
    padding: 12px 20px;
  }
}

@media (max-width: 500px) {
  .rp-nav__inner {
    padding: 0 8px;
    gap: 6px;
  }
  .rp-nav__brand-group {
    gap: 4px;
  }
  .rp-nav__logo {
    width: 35px;
    height: 35px;
  }
  .rp-nav__brand--title {
    font-size: 14px;
  }
  .rp-nav__brand--subtitle {
    font-size: 10px;
  }
  .rp-nav__links {
    width: 80%;
    max-width: 250px;
  }
}

@media (max-width: 360px) {
  .rp-nav__inner {
    padding: 0 6px;
  }
  .rp-nav__logo {
    width: 32px;
    height: 32px;
  }
  .rp-nav__brand--title {
    font-size: 13px;
  }
  .rp-nav__brand--subtitle {
    font-size: 9px;
  }
  .rp-nav__links {
    width: 85%;
  }
}

/* Hamburger styles */
.rp-nav__hamburger {
  display: none; /* Hidden by default, shown only on mobile */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 1002; /* Ensure it's above other elements */
  position: relative;
}

.rp-nav__hamburger:hover {
  background-color: rgba(210, 4, 45, 0.1);
}

.rp-nav__hamburger-close {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 28px;
  height: 28px;
  opacity: 0;
  transition: all 0.3s ease;
}

.rp-nav__hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #D2042D;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger states */
.rp-nav__hamburger.active span {
  opacity: 0;
}

.rp-nav__hamburger.active .rp-nav__hamburger-close {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Show hamburger on mobile */
@media (max-width: 900px) {
  .rp-nav__hamburger {
    display: flex !important;
  }
  
  /* Add overlay when menu is open */
  .rp-nav__overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
  }
  
  .rp-nav__overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Prevent text overflow in hero */
.hero-title, .hero-desc {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Footer styles */
.footer__logo-box {
  width: auto;
  min-width: 220px;
  max-width: 280px;
  gap: 12px;
  margin-bottom: 0;
  padding: 12px 16px;
  min-height: 70px;
  /* Compact footer logo box */
}
.footer__logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

@media (min-width: 1700px) {
  body {
    padding-top: 120px;
  }
  
  .rp-nav__inner {
    height: 120px;
    padding: 0 80px;
    gap: 48px;
  }
  .rp-nav__logo {
    width: 90px;
    height: 88px;
  }
  .rp-nav__brand--title {
    font-size: 40px;
  }
  .rp-nav__brand--subtitle {
    font-size: 28px;
  }
  .rp-nav__link {
    font-size: 25px;
  }
}
@media (min-width: 2000px) {
  body {
    padding-top: 140px;
  }
  
  .rp-nav__inner {
    height: 140px;
    padding: 0 160px;
    gap: 80px;
  }
  .rp-nav__logo {
    width: 120px;
    height: 118px;
  }
  .rp-nav__brand--title {
    font-size: 50px;
  }
  .rp-nav__brand--subtitle {
    font-size: 36px;
  }
  .rp-nav__link {
    font-size: 25px;
  }
}

/* Ultra Large screens 2400px+ */
@media (min-width: 2400px) {
  body {
    padding-top: 160px !important;
  }
  
  .rp-nav {
    height: 160px !important;
  }
  
  .rp-nav__inner {
    height: 160px !important;
    padding: 0 80px;
    gap: 40px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
  }
  .rp-nav__logo {
    width: 110px;
    height: 108px;
  }
  .rp-nav__brand--title {
    font-size: 48px;
  }
  .rp-nav__brand--subtitle {
    font-size: 30px;
  }
  .rp-nav__links {
    gap: 14px;
  }
  .rp-nav__links a {
    font-size: 22px;
    padding: 12px 18px;
  }
  .rp-nav__cta {
    font-size: 20px;
    min-width: 180px;
    max-width: none;
    width: auto;
    padding: 12px 28px;
    border-width: 3px;
    flex-shrink: 0;
    overflow: visible;
  }
}

/* Extra Ultra Large screens 2800px+ */
@media (min-width: 2800px) {
  body {
    padding-top: 180px !important;
  }
  
  .rp-nav {
    height: 180px !important;
  }
  
  .rp-nav__inner {
    height: 180px !important;
    padding: 0 100px;
    gap: 50px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
  }
  .rp-nav__logo {
    width: 130px;
    height: 128px;
  }
  .rp-nav__brand--title {
    font-size: 54px;
  }
  .rp-nav__brand--subtitle {
    font-size: 34px;
  }
  .rp-nav__links {
    gap: 20px;
  }
  .rp-nav__links a {
    font-size: 26px;
    padding: 14px 22px;
  }
  .rp-nav__cta {
    font-size: 24px;
    min-width: 220px;
    max-width: none;
    width: auto;
    padding: 14px 34px;
    border-width: 4px;
    flex-shrink: 0;
    overflow: visible;
  }
}