/* Import Noto Sans */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background-color: #ffffff;
  font-family: 'Noto Sans', sans-serif;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Footer shared container */
.header-footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 1rem;
}

/* Style the nav links */
.header-nav .nav-link {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.header-nav .nav-link:hover {
  color: #007bff;
}

/* Sticky Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

/* Sticky Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  z-index: 1000;
  border-top: 1px solid #eee;
}

/* Main content spacing */
.main-content {
  padding-top: 20px;    /* header height */
  padding-bottom: 20px; /* footer height */
}

/* Logo styling */
.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

/* Footer links */
.footer-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
}

/* Grid of cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

/* Card base style */
.card {
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  transition: 
      transform 0.2s ease-out,
      box-shadow 0.2s ease-out;
}


  .card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }

.card-inner {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
  }

/* Card header (title) */
.card-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff6600; /* orange */
  margin-bottom: 0.75rem;
}

/* Card description */
.card-desc {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #333;
}

/* Hover state */
.card:hover {
  background-color: #000;
  color: #fff;
}

.card:hover .card-header {
  color: #fff;
}

.card:hover .card-desc {
  color: #eee;
}

progress {
    display: none;
  }

  /* Increase the gap under the sticky header */
.main-content {
    /* was: padding-top: 60px; */
    padding-top: calc(20px + 1.5rem);   /* 60px header + extra 1.5rem */
    padding-bottom: 20px;               /* keep footer gap */
  }
  
  /* Add padding inside each container for comfortable reading */
  .main-content > .container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .main-content h1,
.main-content h2 {
  margin-top: 1.5rem;
}

/* Centered, dotted upload box */
.upload-box {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border: 2px dotted #ccc;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
  }
  .upload-box.dragover {
    background-color: #f9f9f9;
  }
  
  /* Instructions text */
  .upload-text {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #333;
  }
  
  /* Upload button */
  .upload-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .upload-btn:hover {
    background-color: #ff6600;
    color: #ffffff;
    border-color: #ff6600;
  }
  
  /* Hide progress by default */
  progress {
    display: none;
    margin-top: 1rem;
    width: 100%;
  }
  
  /* Download link and error message spacing */
  #downloadLink {
    display: none;
    margin-top: 1rem;
  }
  #errorMsg {
    display: none;
  }
  
  /* hide progress by default */
progress {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }
  
  /* Download button styling */
  .download-btn {
    display: none;
    padding: 0.5rem 1.5rem;
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-top: 1rem;
  }
  .download-btn:hover {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
  }
  /* Page header styling */
.page-header {
    margin-bottom: 2rem;
  }
  .inner-title {
    font-size: 1.75rem;
    font-weight: 500;      /* medium weight, not too bold */
    color: #333;
    margin-bottom: 0.5rem;
  }
  .inner-desc {
    font-size: 1rem;
    font-weight: 400;      /* normal weight */
    color: #555;
    margin-bottom: 1.5rem;
  }
  
  /* Logo container */
  .site-logo {
    display: inline-flex;       /* inline-level flex container */
    align-items: center;        /* vertical align icon & text */
    gap: 0.5rem;                /* space between icon & text */
    text-decoration: none;
  }
  
  /* SVG icon sizing */
  .logo-icon {
    height: 32px;    /* visible but not huge */
    width: auto;     /* preserve aspect ratio */
    margin-right: 0.5rem;
    
  }
  
  /* Logo text styling */
  .site-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
  }
  
  /* If you want slightly larger on desktop: */
  @media (min-width: 768px) {
    .logo-icon {
        height: 32px;
        width: auto;
      }
      .site-logo-text {
        font-size: 1.5rem;
        font-weight: 700;
        color: #333;
      }
    }

    .site-logo:hover,
    .site-logo:focus {
      text-decoration: none;
    }


  /* Banner wrapper */
.cards-banner {
    text-align: center;
    margin-bottom: 2rem;  /* space between banner and cards */
  }
  
  /* Responsive banner image */
  .cards-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;    /* optional rounding */
  }
  
.carousel-item { display: none; }
.carousel-item.active { display: block; }

#homeCarousel .carousel-item img {
  max-height: 500px;
  width: 900px;
  margin: 0 auto;
}