/* Import Raleway font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

/* Import Font Awesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Font Awesome icon spacing */
.fas, .far, .fab, .fal {
  margin-right: 8px;
}

/* Apply Raleway font to all elements */
* {
  font-family: 'Raleway', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Main Header Styles */
.main-header {
  display: flex;
  position: relative;
  text-align: center;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  padding: 40px 120px;
}

/* Hero Banner Styles */
.hero-banner {
  margin-top: 40px;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  margin: 0 auto;
}

.hero-subcontent {
  margin-top: 20px;
}

.hero-subcontent-text {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 50px;
}

.hero-text {
  flex: 1;
  text-align: left;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-image {
  flex: 1;
  text-align: center;
  box-shadow: 10px 10px 5px #cccccc;
  border-radius: 5px;
}

.hero-diagram {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.button-group {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-main {
  background-color: #447099;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  margin: 0 15px;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.btn-main:hover {
  background-color: #305775;
}

/* Navbar Logo Styles */
.navbar-logo {
  height: 35px;
  max-height: 35px;
  width: auto;
  margin-right: 30px;
}

.fade-in-left {
  opacity: 0;
  animation: fadeInFromLeft 0.8s ease-in-out forwards;
  animation-delay: 0.3s;
}

.fade-in-right {
  opacity: 0;
  animation: fadeInFromRight 0.8s ease-in-out forwards;
  animation-delay: 0.3s;
}

.fade-in-up {
  opacity: 0;
  animation: fadeInFromUp 0.8s ease-in-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInFromRight {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInFromUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-based fade effects */
.scroll-fade {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 1.5s ease-in-out, transform 0.8s ease-in-out;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-content {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  padding-left: 120px;
  padding-right: 120px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title > p {
  margin: 0;
}

.section-title::before {
  content: '';
  width: 50px;
  height: 2px;
  background: #39729E;
  display: inline-block;
  margin-right: 15px;
}

.section-title::after {
  content: '';
  width: 50px;
  height: 2px;
  background: #39729E;
  display: inline-block;
  margin-left: 15px;
}

.flex-row {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.partner-section {
  margin-top: 60px;
}

.partner-logos {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 70px;
}

.parter-logo {
  filter: grayscale(100%);
  justify-self: center;
  align-self: center;
}

.parter-logo:hover {
  filter: grayscale(0%);
}

.parter-logo-img {
  height: 30px;
  justify-self: center;
}

.parter-logo-img-lg {
  height: 60px;
  justify-self: center;
}

.nav-link:hover, .nav-link.active {
  color: #305775 !important;
}

.sidebar-item {
  margin: 0.5rem 0;
}

.sidebar-section {
  padding-left: 1rem;
  padding-bottom: .2rem;
}

.listing-title {
  font-size: 1rem;
}

.sidebar-menu-container .list-unstyled {
  list-style: circle;
}

header > .quarto-title > h1 {
  margin: 1.25rem 0 !important;
}

/* Responsive Design - Minimal Media Queries */
@media (max-width: 768px) {
  .main-header {
    padding: 20px;
  }
  
  .section-content {
    padding: 40px 20px !important;
  }
  
  .hero-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .hero-text {
    text-align: center;
    font-size: 28px;
  }
  
  .hero-subcontent-text {
    font-size: 18px;
    margin-top: 30px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .flex-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .partner-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .button-group {
    flex-wrap: wrap;
  }
  
  .btn-main {
    margin: 10px 5px;
  }
}

@media (max-width: 480px) {
  .partner-logos {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-text {
    font-size: 24px;
  }
  
  .hero-subcontent-text {
    font-size: 16px;
  }
  
  .section-title::before,
  .section-title::after {
    width: 30px;
  }
}

/* Listing styles */
.selected-categories-display {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  border: 1px solid #dee2e6;
}

.selected-categories-title {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  color: #495057;
}

.selected-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.selected-category {
  cursor: pointer;
  position: relative;
  background-color: #2780e3;
  color: white;
  border-radius: 0.25rem;
  padding: 0 0.5rem;
  font-size: 0.7rem;
  transition: background-color 0.15s ease-in-out;
}

.selected-category:hover {
  opacity: 0.8;
}

.selected-category::after {
  content: '×';
  margin-left: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
}

.quarto-float-fig {
  text-align: center;
}

mjx-mtd {
  text-align: center !important;
}
