/* =========================================================
   XEMI Resources Page Styles (resources.css)
   Used for: HSN Recommender, ICEGATE Decoder, Shipment Tracker
   Author: XEMI Web Team
   Last Updated: November 2025
============================================================ */

/* ----------------------------
   General Page Structure
----------------------------- */
body.resources-page {
  background-color: #f8f9fc;
  font-family: "Open Sans", sans-serif;
  color: #333;
  line-height: 1.6;
  padding-top: 90px;
}

/* Smooth animation */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------
   Hero Section
----------------------------- */
.resources-hero {
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #0052cc;
  border-bottom: 1px solid #e9ecef;
}

.resources-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.resources-hero p {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 35px;
}

/* ----------------------------
   Search Section
----------------------------- */
.hsn-search-box {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hsn-search-box input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #d6d9de;
  border-radius: 50px;
  font-size: 15px;
  background: #fff;
  transition: all 0.3s ease;
}

.hsn-search-box input:focus {
  border-color: #0052cc;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
  outline: none;
}

.hsn-search-box button {
  background: #0052cc;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.hsn-search-box button:hover {
  background: #003d99;
}

/* ----------------------------
   Results Section
----------------------------- */
.hsn-results-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

.hsn-results-container h2 {
  text-align: center;
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 20px;
  font-weight: 600;
}

.hsn-result-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hsn-result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.hsn-result-card h3 {
  color: #0052cc;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hsn-result-card p {
  color: #444;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.hsn-result-card .sub-info {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  border-top: 1px solid #eee;
  margin-top: 15px;
  padding-top: 10px;
}

.hsn-result-card strong {
  color: #222;
}

/* Example tag / product listing style */
.hsn-tag {
  display: inline-block;
  background: #eaf2ff;
  color: #0052cc;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 4px 4px 0 0;
}

/* ----------------------------
   Feedback Section
----------------------------- */
.feedback-box {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin: 60px auto;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.feedback-box h3 {
  font-size: 1.25rem;
  color: #0052cc;
  font-weight: 600;
  margin-bottom: 15px;
}

.feedback-box textarea {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 10px 15px;
  font-size: 15px;
  resize: vertical;
  transition: all 0.3s ease;
}

.feedback-box textarea:focus {
  border-color: #0052cc;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
  outline: none;
}

.feedback-box button {
  margin-top: 15px;
  background: #0052cc;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feedback-box button:hover {
  background: #003d99;
}

/* ----------------------------
   Footer
----------------------------- */
.resources-footer {
  text-align: center;
  padding: 30px 15px;
  font-size: 0.9rem;
  color: #666;
  background: #ffffff;
  border-top: 1px solid #eee;
}

.resources-footer a {
  color: #0052cc;
  margin: 0 6px;
  text-decoration: none;
}

.resources-footer a:hover {
  text-decoration: underline;
}

/* ----------------------------
   Responsive Design
----------------------------- */
@media (max-width: 768px) {
  .resources-hero {
    padding: 60px 20px 30px;
  }

  .resources-hero h1 {
    font-size: 1.8rem;
  }

  .hsn-search-box {
    flex-direction: column;
  }

  .hsn-search-box button {
    width: 100%;
  }

  .hsn-result-card {
    padding: 20px;
  }
}

/* ----------------------------
   Info Section (Bottom Note)
----------------------------- */
.xemi-info {
  padding: 60px 20px;
  background: #f9fafc;
  border-top: 1px solid #e5e8ef;
}

.xemi-info .info-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.xemi-info .info-email {
  color: #0052cc;
  font-weight: 600;
  text-decoration: none;
}

.xemi-info .info-email:hover {
  text-decoration: underline;
}
/* ----------------------------
   Shipment Tracking Page
----------------------------- */
.shipment-tracking-section {
  background: #fff;
  padding: 80px 20px;
}

.tracking-info p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.learn-more-link {
  color: #0052cc;
  text-decoration: none;
  font-weight: 600;
}

.learn-more-link:hover {
  text-decoration: underline;
}

.tracking-form .form-control {
  height: 48px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.shipment-results {
  margin-top: 40px;
  text-align: left;
}

.shipment-results .text-muted {
  color: #666;
  font-size: 1rem;
}

.shipment-card {
  background: #f9fafc;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}