/* Prevent mobile scroll overflow issues */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  padding-top: 0;
}

/* Add padding to account for fixed navbar */
body {
  padding-top: 86px;
}

/* Mobile-first: Add padding to containers to prevent edge-to-edge cards */
@media (max-width: 768px) {
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Extra spacing for cards on mobile */
  .feature-card,
  .institution-card,
  .card {
    margin-left: 5px;
    margin-right: 5px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Background overlay for hero section */
.background-overlay {
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  filter: blur(0.8px);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* Hero content */
.hero-section {
  position: relative;
  min-height: 250px;
  padding: 60px 0;
}

/* Mobile/Tablet (Bootstrap sm and below): Apply zoom to hide corners */
@media (max-width: 768px) {
  .background-overlay {
    background-size: 150%; /* Zoom in on mobile/tablet */
  }

  .hero-section {
    min-height: 200px; /* Less height needed on mobile */
  }
}

@media (max-width: 576px) {
  .background-overlay {
    background-size: 170%; /* More zoom on small phones */
  }

  .hero-section {
    min-height: 180px; /* Minimal height on small screens */
  }
}

.hero-section .content {
  position: relative;
  z-index: 2;
}

/* Font styles for RegiStream logo and slogan */
.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: #2d3748;
}

.slogan {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #054e73 0%, #0a7fb5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 15px;
}

/* Mobile-first: Responsive hero text */
@media (max-width: 768px) {
  .logo {
    font-size: 2.8rem; /* Much smaller for mobile */
  }

  .slogan {
    font-size: 1.2rem;
    margin-top: 10px;
  }

  .hero-section {
    padding: 40px 0; /* Less padding on mobile */
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 2.2rem; /* Even smaller for very small screens */
  }

  .slogan {
    font-size: 1rem;
  }
}
/* Styling for section headings */
.section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 15px;
  text-align: center;
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #054e73 0%, #0a7fb5 100%);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-heading-wrapper {
  position: relative;
  margin-bottom: 40px;
  text-align: center;
}

/* Styling for subsection headings */
.section-subheading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem; /* Slightly smaller than h1 */
  font-weight: 400; /* Lighter weight for subtlety */
  color: #054e73; /* Dark blue for a clean, professional look */
  padding: 5px 0; /* Minimal padding for cleaner lines */
  margin-bottom: 20px; /* Space below for separation from content */
  display: inline-block; /* Keep the background fitting the text */
  border-left: 4px solid #054e73; /* Subtle visual cue with a left border */
  padding-left: 10px; /* Spacing between the text and the left border */
}


/* Styling for the quote section */
.quote-box {
  display: flex;
  align-items: start;
}

.quote-content {
  border-left: 4px solid #ccc;
  padding-left: 15px;
}

.quote-content .lead {
  font-size: 1.6rem;
}

.quote-mark {
  font-size: 100px;
  color: lightblue;
  line-height: 1;
  margin-bottom: -50px;
  font-family: Georgia, 'Times New Roman', Times, serif;

}

.lead {
  font-style: italic;
}

/* Value Proposition Section */
.value-prop-section {
  padding: 50px 0 40px;
}

.value-statement {
  font-family: 'Roboto', sans-serif;
  font-size: 1.35rem;
  line-height: 1.9;
  color: #495057;
  text-align: center;
  margin-bottom: 0;
  font-weight: 300;
}

.value-statement strong {
  font-weight: 600;
  color: #054e73;
}

@media (max-width: 768px) {
  .value-statement {
    font-size: 1.15rem;
    line-height: 1.75;
  }
}

/* Used By Section */
.used-by-section {
  padding: 70px 0 50px;
}

.used-by-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 35px;
}

.institution-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 35px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid #054e73;
}

.institution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(5, 78, 115, 0.15);
}

.institution-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #054e73 0%, #0a7fb5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(5, 78, 115, 0.25);
}

.institution-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 10px;
}

.institution-detail {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #054e73;
  margin-bottom: 12px;
}

.institution-description {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .institution-card {
    margin-bottom: 20px;
  }
}

/* Styling for the feature section */
.feature-section {
  padding: 60px 0;
}

/* Modern Feature Cards */
.feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 35px 30px;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(5, 78, 115, 0.15);
}

.feature-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 2rem;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card-icon.curated {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.feature-card-icon.instant {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.feature-card-icon.multilingual {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.feature-card-icon.built {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}

.feature-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 15px;
  line-height: 1.3;
}

.feature-card-description {
  font-family: 'Roboto', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .feature-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .feature-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }

  .feature-card-title {
    font-size: 1.25rem;
  }

  .feature-card-description {
    font-size: 1rem;
  }
}

/* Package language styling for cards */
.package-lang {
  background-size: var(--zoom, contain);
  background-position: center;
  background-repeat: no-repeat;
  height: 200px;
}

/* Styling for team member photos */
.team-photo {
  background-size: var(--zoom, contain);
  background-position: center;
  background-repeat: no-repeat;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
}

/* Citation box styling */
.citation-box {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  padding: 20px 30px;
  margin: 20px auto;
  width: fit-content;
  max-width: 90%; /* Don't go too wide on mobile */
}

@media (max-width: 768px) {
  .citation-box {
    padding: 15px 20px;
    margin: 20px 15px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .citation-box {
    padding: 12px 15px;
    margin: 15px 10px;
    font-size: 0.9rem;
  }
}

.twemoji {
  display: inline-block;
  height: 1em;
}


/* body {
  padding-bottom: 300px;
} */

.p2 {
  font-size: 1.2rem;
  text-align: justify;
  padding: 0 20px; /* Add horizontal padding */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .p2 {
    font-size: 1.1rem;
    padding: 0 10px; /* Less padding on mobile (container already has 20px) */
    text-align: justify; /* Keep justified on all screen sizes */
  }
}

@media (max-width: 480px) {
  .p2 {
    font-size: 1rem;
    padding: 0 5px;
    text-align: justify; /* Keep justified even on small screens */
  }
}



/* Terminal Styling */
.terminal {
  background-color: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  width: 100%;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.terminal-header {
  background-color: #323232;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
}

.terminal-btns {
  display: flex;
  gap: 6px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-btn.close {
  background-color: #ff5f56;
}

.terminal-btn.minimize {
  background-color: #ffbd2e;
}

.terminal-btn.maximize {
  background-color: #27c93f;
}

.terminal-tabs {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.terminal-tab {
  color: #aaa;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  user-select: none;
  transition: background-color 0.2s, color 0.2s;
}

.terminal-tab.active {
  color: #fff;
  background-color: #444;
}

.terminal-tab.disabled {
  color: #666;
  cursor: not-allowed;
}

.terminal-body {
  padding: 20px;
  color: #f8f8f2;
  min-height: 100px;
  position: relative;
}

.language-indicator {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 13px;
  color: #aaa;
  background-color: rgba(40, 40, 40, 0.8);
  padding: 4px 10px;
  border-radius: 4px;
  font-style: italic;
  border-left: 2px solid #444;
}

.code-console {
  display: none;
}

.code-console.active {
  display: block;
}

#stata-code-output,
#python-code-output,
#r-code-output {
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
  color: #ffffff;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
}



/* Navigation Bar Styling */
.navbar {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for better visual distinction */
  margin-bottom: 30px; /* Add space below the navbar */
  position: fixed; /* Fixed position at the top */
  top: 0; /* Specifies how far from the top it should stick */
  left: 0;
  right: 0;
  z-index: 1030; /* Ensure it stays above other elements when scrolling */
  background-color: #f8f9fa; /* Ensure the navbar has a background color when sticky */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}


.navbar-brand {
  font-weight: 700; /* Make the logo text bold */
  font-family: 'Poppins', sans-serif;
  color: black !important; /* Matching color theme */
}

.navbar-nav .nav-link {
  color: #343a40 !important; /* Dark text for readability */
  font-size: 1.1rem;
  padding: 10px 15px;
}

.navbar-nav .nav-link:hover {
  color: #007bff !important; /* Color change on hover */
  text-decoration: underline;
}

/* Dropdown menu styling */
.dropdown-menu {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.dropdown-item {
  color: #343a40;
  padding: 10px 20px;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #007bff;
}

/* Mobile dropdown styling */
@media (max-width: 991px) {
  .dropdown-menu {
    border: none;
    box-shadow: none;
    background-color: transparent;
    padding-left: 20px;
  }

  .dropdown-item {
    padding: 8px 15px;
    border-left: 2px solid transparent;
    transition: border-color 0.2s;
  }

  .dropdown-item:hover {
    background-color: transparent;
    border-left-color: #007bff;
  }
}





/* Instruction Box Styling */
.instruction-box pre {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  white-space: pre-wrap;
  margin-top: 10px;
}

/* FAQ and Support Section Styling */
.faq-box, .support-section {
  padding: 20px;
  border-radius: 8px;
  background-color: #f8f9fa;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/* Styling for the Main Title */
.main-title-wrapper {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.main-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem; /* Larger than section headings */
  font-weight: 800; /* Extra bold for emphasis */
  color: #343a40; /* Dark gray */
  text-transform: uppercase; /* Optional: Makes the title all uppercase */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}



.inline-code {
  background-color: #f8f9fa; /* light gray background similar to pre/code */
  padding: 2px 5px;          /* small padding to match the block code style */
  border-radius: 3px;        /* rounded corners for aesthetics */
  font-family: monospace;    /* monospace font for code */
  display: inline-block;     /* keep it inline but styled distinctly */
}



.site-footer {
  width: 100%;
  padding: 20px;
  background-color: #f8f9fa; /* Adjust the background color to fit your theme */
  border-top: 1px solid #e7e7e7; /* Optional: gives a subtle line above the footer */
  margin-top: 200px;
}

.site-footer p {
  margin: 0;
  color: #6c757d; /* Matches the Bootstrap 'text-muted' style */
}

/* GitHub Corner Ribbon */
.github-corner {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  width: 120px;
  height: 120px;
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Solid background triangle that remains visible at all times */
.github-corner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 120px 120px 0;
  border-color: transparent #054e73 transparent transparent;
  z-index: 9998;
}

/* Octocat styling */
.octocat {
  position: absolute;
  top: 45px;
  right: -5px;
  width: 80px;
  height: 80px;
  transition: all 0.3s ease;
  z-index: 9999;
  opacity: 1;
}

/* Make the triangle path transparent to show the background */
.octocat path:first-child {
  fill: transparent;
}

/* Other paths are the actual cat parts */
.octocat path:not(:first-child) {
  fill: #fff; /* White color for visibility */
}

/* Text styling */
.star-text {
  position: absolute;
  top: 38px;
  right: 18px;
  transform: rotate(45deg);
  font-size: 14px;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10001;
}

/* Floating star styling */
.floating-star {
  position: absolute;
  top: -4%;
  right: 50%;
  z-index: 10000;
  opacity: 1;
  transition: top 1s ease-in-out, right 1s ease-in-out, scale 1s ease-in-out;
  animation: star-hover 3s ease-in-out infinite;
}

.star-icon {
  fill: #FFA500;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
  width: 20px;
  height: 20px;
  transform-origin: center;
  animation: star-twinkle 8s ease-in-out infinite;
}

.star-count {
  position: fixed;
  top: 8px;
  right: 8px;
  font-size: 26px;
  font-weight: 700;
  color: #FFA500;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10002;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.star-count::after {
  content: 'Stars';
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-top: 3px;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

/* Animate star on hover - use percentages for proportional scaling */
.github-corner:hover .floating-star,
.github-corner.auto-hover .floating-star {
  top: 10%;
  right: 18%;
  scale: 1.2;
  animation: star-spin-in 1s ease-in-out;
}

/* Spin back animation */
.floating-star.spin-back {
  animation: star-spin-out 1s ease-in-out;
}

/* Animations */
@keyframes star-hover {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 2px); }
  50% { transform: translate(0, 3px); }
  75% { transform: translate(2px, 1px); }
  100% { transform: translate(0, 0); }
}

@keyframes star-twinkle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes star-spin-in {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes star-spin-out {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

/* Corner content container */
.corner-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  /* Prevent scroll offset issues on mobile */
  body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* Move hamburger menu to avoid GitHub corner (ONLY on landing page) */
  .landing-page .navbar-toggler {
    margin-right: 100px; /* Space from the GitHub corner */
  }

  /* Keep GitHub corner the same size on mobile - it works well */
  /* Removed mobile scaling to preserve the original perfect layout */
}

/* Hover effects - hide cat, show text, hide star count */
.github-corner:hover .octocat,
.github-corner.auto-hover .octocat {
  opacity: 0;
}

.github-corner:hover .star-text,
.github-corner.auto-hover .star-text {
  opacity: 1;
}

.github-corner:hover .star-count,
.github-corner.auto-hover .star-count {
  opacity: 0;
}

/* Version selector styling on landing page */
.version-selector-wrapper {
  margin-bottom: 20px;
  padding: 10px;
  max-width: 180px;
  margin-left: auto;
  margin-right: auto;
}

.version-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #054e73;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.version-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.95rem;
  border: 2px solid #054e73;
  border-radius: 6px;
  background-color: white;
  color: #343a40;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23054e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
  padding-right: 35px;
}

.version-select:hover:not(:disabled) {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(5, 78, 115, 0.15);
}

.version-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.version-select:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.6;
  border-color: #ced4da;
}

.version-badge {
  display: inline-block;
  padding: 3px 10px;
  background-color: #054e73;
  color: white;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
}