body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.mh-header {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: rgb(45, 35, 70);
}

.mh-background-video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 0;
  border-bottom: 2px solid #1687FF;
}

.mh-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  /* background: rgba(0, 0, 0, 0.1); */
  /* Optional: subtle dark overlay */
}

.logo-img {
  max-width: 100%;
  display: block;
}

.logo-container {
  display: flex;
  justify-content: flex-start;
  /* Default for desktop */
}

.mh-logo {
  display: inline-block;
  width: 220px;
  /* Adjust for desktop */
}

@media (max-width: 768px) {
  .logo-container {
    justify-content: center;
    /* Center logo horizontally on mobile */
    margin: auto;
  }

  .mh-logo {
    width: 250px;
    /* Smaller size for mobile */
    align-items: center;
  }
}

.mh-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  /* background: rgba(9, 10, 58, 0.7); */
  background-color: white;
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background-color 0.3s ease;
}

.mh-navbar.scrolled {
  background: #1c1b1b;
  ;
}

.mh-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.mh-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 3;
}

.mh-menu-toggle span {
  width: 25px;
  height: 3px;
  background: black;
  transition: 0.3s;
}

.mh-menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mh-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mh-menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mh-menu {
  display: flex;
  align-items: center;
  /* 👈 Ensures items inside the menu are also vertically centered */
  list-style: none;
  /* gap: 30px; */
  z-index: 2;
  font-size: 16px;
  margin-bottom: 0px;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.mh-menu.show {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem 2rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mh-menu-item {
  position: relative;
  z-index: 0;
}

.mh-menu-item a {
  color: black;
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
  font-size: 18px;
  font-weight: 580;
  display: inline-block;
  padding: 5px 0;
  font-family: 'Public Sans', sans-serif;
}

.mh-menu-item a.active-menu {
  color: #007bff;
  /* Blue */
  font-weight: 800;
}

.mh-menu-item a .mh-underline {
  display: block;
  height: 3px;
  width: 0%;
  background-color: #007bff;
  position: absolute;
  bottom: 0;
      border-radius: 20px;
  left: 0;
  transition: width 0.3s ease;
}

.mh-menu-item a:hover .mh-underline,
.mh-menu-item a.active-menu .mh-underline {
  width: 100%;
}


.has-sub>a::after {
  content: ' ▼';
  font-size: 0.6rem;
}

/* Desktop submenu behavior */

.mh-submenu.align-left {
  left: auto;
  right: 0;
}

.mh-submenu {
  position: absolute;
  top: 100%;
  left: 0px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  min-width: 200px;
  z-index: 999;
  display: none;
  list-style: none;
  padding-left: 1rem;
  display: none;
}

.mh-submenu.open {
  display: block;
  animation: slideDown 0.3s ease;
  font-size: 20px;
}

.mh-submenu.close {
  float: right;
  font-size: 21px;
  line-height: 2;
  color: #000000;
  opacity: 0.2;
}

.mh-menu-item.has-sub:hover .mh-submenu {
  display: block;
  opacity: 1;
  visibility: visible;
  animation: slideDown 0.3s ease;
}

mh-menu-item.has-sub:hover .mh-submenu .close {
  display: none;
}

.mh-submenu li a {
  font-size: 16px;
  /* color: #ccc; */
  color: black;
  text-transform: none;
  display: block;
  padding: 5px 0;
  transition: 0.3s;
}

.mh-submenu li a:hover {
  color: #1f1f1f;
  /* background-color: gainsboro; */
}

/* Hero Section */
.mh-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;

}

.mh-hero-content h1 {
  font-size: 42px;
  margin-bottom: 20px;
  /* font-family: math; */
  font-weight: 600;
  /* color: rgb(22, 21, 71); */
  color: #1c1b1b;
}

.mh-search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 30px;
}

.mh-search-bar input {
  padding: 10px;
  width: 400px;
  height: 50px;
  font-size: 16px;
  border: none;
  border-radius: 5px 0 0 5px;
}

.mh-search-bar button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  /* box-shadow: 1px 1px 1px 0px black; */
  border-radius: 0 5px 5px 0;
  border: none;
}

.mh-buttons button {
  background-color: #e61c1c;
  color: white;
  padding: 10px 20px;
  margin: 10px 5px;
  border-radius: 5px;
  transition: 0.3s;
}

.mh-buttons button:hover {
  background: white;
  color: black;
}

/* ====== Mobile Styles ====== */
@media (max-width: 991px) {
  .mh-menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 9999;
    position: relative;
  }

  .mh-menu {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    background: rgba(51, 51, 51, 0.95);
    flex-direction: column;
    list-style: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
    z-index: 9998;
    display: none;
    gap: 1rem;
  }

  .mh-underline {
    position: absolute;
    height: 4px;
    bottom: 0;
    left: 0;
    background: #1687FF;
    width: 0;
    transition: 0.3s ease;
  }

  .mh-menu.show {
    max-height: 1000px;
    overflow-y: auto;
    background-color: rgba(247, 243, 243, 0.923);
    /* Transparent dark */
    backdrop-filter: blur(200px) brightness(0.9);
    /* Blur + darken */
    -webkit-backdrop-filter: blur(10px) brightness(0.9);
    /* Safari */
    transition: all 0.3s ease;
  }


  /* .mh-hero-content {
    z-index: 1;
  } */

  .mh-menu-item {
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mh-menu-item a {
    padding: 0.5rem 0;
  }

  /* .mh-menu-item a {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
  } */

  .mh-submenu {
    position: relative;
    /* background: rgba(255, 255, 255, 0.05); */
    margin-top: 5px;
    width: 80%;
    display: none;
    flex-direction: column;
  }

  .mh-submenu.open {
    display: flex;
  }

  .mh-submenu.close {
    display: none !important;
    line-height: 2;
  }

  .mh-submenu.open::-webkit-scrollbar {
    width: 5px;
  }

  .mh-submenu.open::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }

  .mh-submenu.open::-webkit-scrollbar-track {
    background: transparent;
  }

  /* .mh-submenu li a {
    padding: 10px 0;
    color: white;
  } */

  .arrow.open {
    transform: rotate(180deg);
  }

  .mh-hero-content {
    padding: 0px 20px !important;
    width: 95% !important;
  }

  .mh-menu-item a:hover .mh-underline {
    width: 100%;
  }

  .mh-menu-item:hover .mh-underline,
  .mh-menu-item.active a .mh-underline {
    width: 100%;
  }

  .mh-submenu li a:hover {
    color: #1687FF;
  }

}

.sticky-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 9999;
    /* background-color: transparent; */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); /* This adds a subtle bottom shadow */
}


.sticky-navbar.scrolled {
  background-color: white;
  /* or solid black: #000 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Index */

/* Layout and Typography */
/* Wrapper */
.mh-wrapper-unique {
  padding: 1rem 2rem;
  background: rgb(217, 234, 238);
  font-family: 'Segoe UI', sans-serif;
}

/* Section 1 - Blue Theme */
.mh-section-unique.theme-blue {
  background: #eff6ff;
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  margin-bottom: 4rem;
}

/* Section 2 - Gold Theme */
.mh-section-unique.theme-gold {
  background: #fefce8;
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  margin-bottom: 4rem;
}

/* Section 3 - Rose Theme */
.mh-section-unique.theme-rose {
  background: #fff1f2;
  border-radius: 1.5rem;
  padding: 3rem 2rem;
}

/* Title */
.mh-title-unique {
  font-size: 2.4rem;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  /* font-family: math; */
  margin-bottom: 2rem;
  position: relative;
}

.mh-title-unique::after {
  content: "";
  display: block;
  width: 200px;
  /* Max width */
  height: 4px;
  background-color: rgb(22, 90, 214);
  border-radius: 5px;
  margin: 0.5rem auto 0;
  transform: scaleX(0.4);
  /* Initial width (40%) */
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mh-title-unique:hover::after {
  transform: scaleX(1);
  /* Full width */
}


/* Grid Layout */
.mh-grid-unique {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Card */
.mh-card-unique {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.mh-card-unique:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Icons */
.mh-icon-unique {
  font-size: 2.8rem;
  color: #0e0881;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.mh-card-unique:hover .mh-icon-unique {
  color: #1b1599;
}

/* Text */
.mh-card-unique p {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

.mh-subtext {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 0.4rem;
  color: #475569;
}

/* Responsive */
@media (max-width: 768px) {
  .mh-title-unique {
    font-size: 1.9rem;
  }

  .mh-title-unique1 {
    font-size: 1.9rem;
  }

  .mh-icon-unique {
    font-size: 2.3rem;
  }

  .mh-card-unique p {
    font-size: 1.05rem;
  }
}

.tools-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  animation: fadeInLeft 0.6s ease-out;
  margin-bottom: 30px;
}

.tools-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 40px;
  font-weight: bold;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  padding-top: 15px;
  margin: 0 auto;
}

.tool-card {
  background-color: #041e5c;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.tool-icon {
  font-size: 2rem;
  color: white;
  margin-bottom: 12px;
}

.tool-label {
  font-size: 1.2rem;
  font-weight: 500;
  color: white;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Banner */
/* .chem-banner {
  position: relative;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
} */

/* Video Background */
.chem-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay on top of video */
.chem-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(30 28 41 / 50%);
  z-index: 1;
}

/* Text Content */
.chem-banner h1,
.chem-banner p {
  position: relative;
  z-index: 2;
}

.chem-banner h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  margin-top: 50px;
  color: white;
  font-weight: 700;
  font-style: normal;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* font-family: math; */
}

.chem-banner p {
  font-size: 1.4rem;
  color: white;
  font-weight: 400;
  /* font-style: italic; */
  opacity: 0.9;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  font-family: 'Public Sans', sans-serif;
}


/* Search */
.chem-search-bar {
  display: flex;
  justify-content: center;
  margin: 40px 0 30px;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.search-container {
  display: flex;
  align-items: center;
  /* border-radius: 50px; */
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  transition: all 0.3s ease;
}

.search-container input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 50px 0 0 50px;
  background: transparent;
  color: #333;
}

.search-container button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 19px 20px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.search-container button:hover {
  background-color: blue;
}

.home-dropdown-list {
  position: absolute;
  top: 100%;
  width: 45%;
  /* Match the width of the parent (.search-container) */
  background-color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 0 0 20px 20px;
  max-height: 250px;
  overflow-y: auto;
  box-sizing: border-box;
}



.home-dropdown-list li {
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
  color: #333;
}

.home-dropdown-list li:hover {
  background-color: #f0f0f0;
}

/* Card */
.chem-card {
  background: rgba(255, 255, 255, 0.95);
  margin: 10px auto 10px;
  max-width: 700px;
  border-radius: 16px;
  padding: 30px 20px;
  /* margin-bottom: 30px; */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Grade section */
.chem-grade {
  text-align: center;
  margin-bottom: 20px;
}

.chem-grade h2,
.chem-grade p {
  margin: 5px 0;
  color: #333;
}

.chem-grade span {
  font-weight: bold;
  color: #1c1b1b;
}

.table-heading {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #555;
  text-align: center;
}

/* Table */
.chem-table-wrapper {
  overflow-x: auto;
}

.chem-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
}

.chem-table th,
.chem-table td {
  padding: 14px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.chem-table th {
  background-color: #1c1b1b;
  color: #fff;
  font-weight: 600;
}

.chem-table td {
  background-color: #fefefe;
  font-size: 0.95rem;
}

.chem-table tr:hover td {
  background-color: #f3f3f3;
  transition: 0.3s ease;
}

/* Responsive */
@media (max-width: 600px) {
  .chem-banner h1 {
    font-size: 2rem;
  }

  .chem-table th,
  .chem-table td {
    font-size: 0.85rem;
    padding: 10px;
  }
}

.color-div {
  background-color: #e9e9e9;
  padding-bottom: 20px;
}

.footer {
  background-color: white;
  color: black;
  padding: 50px 20px 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 250px;
  min-width: 250px;
}

.footer-title {
  font-size: 24px;
  color: black;
  margin-bottom: 15px;
}

.footer-description {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

.footer-subtitle {
  font-size: 18px;
  color: black;
  margin-bottom: 10px;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.footer-links a,
.footer-contact a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: blue;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
}

/* Layout Wrappers */
/* Layout Wrappers */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: #f4f6f8;
}

.main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100vh;

}

.content-container {
  padding: 1.5rem;
  margin-top: 25px;
  flex: 1;
}

/* Form Styling */
.form-wrapper {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;

}

.form-wrapper {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1rem 2rem 2rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);


}

.form-title {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  font-weight: bold;
  color: #333;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.form-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;

}

.form-row-2 {
  /* display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-start; /* Ensure items align properly 
  margin-left: 0rem; Add margin to the left side of the row */

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;

}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.form-field {
  /* flex: 1 1 30%; */
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
  font-size: 0.9rem;
}

.form-input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: #007bff;
}



/* Properties Section */
.property-group {
  background-color: #f9f9fb;
  border: 1px solid #e2e2e2;
  padding: 1.25rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;

}

.property-label {
  font-weight: bold;
  margin-bottom: 0.95rem;
  color: #222;
}

.property-inputs {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
}

.property-inputs input[type="text"] {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

@media (max-width: 991px) {
  .property-group {

    width: 100%;

  }
}

/* Submit Button */
.submit-btn {
  background-color: #007bff;
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-end;
  margin-top: 1rem;
  font-weight: 500;
}

.submit-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .form-wrapper {
    padding: 1.5rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .property-inputs {
    grid-template-columns: 70px 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .form-wrapper {
    padding: 1rem;
  }

  .form-field {
    min-width: 100%;
  }

  .property-inputs {
    grid-template-columns: 60px 1fr 1fr;
    gap: 0.5rem;
  }
}

/* Table Section */
.table-wrapper {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #333;
}

.grades-table {
  width: 100%;
  border-collapse: collapse;
}

.grades-table th,
.grades-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.grades-table th {
  background-color: #f1f1f1;
  color: #222;
}

.grades-table tr:hover {
  background-color: #fafafa;
}

.mechx-table-wrapper {
  margin: 2rem;
  background: #f9f9fc;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.mechx-table-heading {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #222;
}

.mechx-table-scroll {
  overflow-x: auto;
}

.mechx-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.mechx-table th,
.mechx-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.mechx-table th {
  background-color: #f0f0f5;
  color: #333;
  font-weight: 600;
}

.mechx-table td {
  color: #444;
}

.mechx-btn-edit,
.mechx-btn-delete {
  padding: 0.4rem 0.75rem;
  margin-right: 0.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.mechx-btn-edit {
  background-color: #4caf50;
  color: white;
}

.mechx-btn-delete {
  background-color: #f44336;
  color: white;
}

.mechx-btn-edit:hover {
  background-color: #45a049;
}

.mechx-btn-delete:hover {
  background-color: #e53935;
}

@media (max-width: 768px) {
  .mechx-table-wrapper {
    margin: 1rem;
    padding: 1rem;
  }

  .mechx-table th,
  .mechx-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

/* Container for the entire section */
.user-result-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
  background-color: gainsboro;
  /* Light blue background */
  /* min-height: 100vh;  */
}

/* Card container for content */
.user-result-card {
  background: #ffffff;
  /* White card */
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  width: 100%;
  max-width: 720px;
  /* Slightly wider for desktop */
  transition: transform 0.3s ease;
}

.user-result-card:hover {
  transform: translateY(-4px);
}

/* Heading styling */
.user-result-heading {
  font-size: 1.75rem;
  /* Slightly larger for desktop */
  color: #1e3a8a;
  /* Dark blue */
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Info section (Grade, Standard, Heat Treatment) */
.user-result-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.user-result-info-block {
  background: #f8f8f8;
  /* Light blue block */
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid #747575;
  /* Blue border */
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}

.user-result-info-block:hover {
  background: #dbeafe;
  transform: translateY(-2px);
}

.info-label {
  font-size: 16px;
  color: #1c1b1b;
  /* Blue label */
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1rem;
  /* Increased gap for clearer separation */
}

.info-value {
  font-size: 1rem;
  color: #111827;
  /* Black text */
  font-weight: 600;
}

/* Table wrapper for responsive scrolling */
.user-result-table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
}


/* Table wrapper for responsive scrolling */
.user-result-table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  /* Blue border */
}

/* Table styling */
.user-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  /* Balanced for desktop */
  color: #111827;
  /* Black text */
}

/* Table header */
.user-result-table th {
  background: #1c1b1b;
  /* Blue header */
  color: #ffffff;
  /* White text */
  padding: 0.875rem 1.25rem;
  /* Balanced spacing */
  font-weight: 600;
  text-transform: uppercase;
  font-size: 17px;
  /* Slightly smaller for headers */
  text-align: center;
  border-bottom: 1px solid #2563eb;
  /* Darker blue border */
}

/* Table cells */
.user-result-table td {
  padding: 0.875rem 1.25rem;
  /* Consistent with headers */
  text-align: center;
  font-size: 15px;
  border-bottom: 1px solid #e5e7eb;
  /* Light gray border */
  transition: background 0.2s ease;
}

/* Property name (first column) */
.user-result-table td:first-child {
  text-align: left;
  font-weight: 500;
  font-size: 15px;
  color: #111827;
  /* Black text */
}

/* Empty cells for alignment */
.user-result-table td:empty {
  background: #f5faff;
  /* Light blue for empty cells */
}

/* Hover effect for rows */
.user-result-table tbody tr:hover {
  background: #eff6ff;
  /* Light blue hover */
}

/* Alternating row colors */
.user-result-table tbody tr:nth-child(even) {
  background: #fafbff;
  /* Very light blue */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .user-result-card {
    padding: 1.5rem;
    max-width: 90%;
  }

  .user-result-heading {
    font-size: 1.5rem;
  }

  .user-result-info {
    grid-template-columns: 1fr;
    /* Single column for smaller screens */
  }

  .user-result-table th,
  .user-result-table td {
    padding: 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .user-result-table-wrapper {
    margin: 0 -0.75rem;
    border-radius: 0;
  }

  .user-result-table th,
  .user-result-table td {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .user-result-info-block {
    padding: 1rem;
  }

  .user-result-heading {
    font-size: 1.25rem;
  }
}

.user-search-bar-wrapper {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.user-search-input {
  flex: 1;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  background-color: #eff6ff;
  transition: all 0.3s ease;
}

.user-search-input:focus {
  border-color: #2563eb;
  background-color: #dbeafe;
}

.user-search-button {
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.user-search-button:hover {
  background-color: #2563eb;
}


/* Main Section */
.metcard1 {
  padding: 2rem;
  text-align: center;
  min-height: 100vh;
}

/* Section Title */
.metcard1-section-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 2rem;
  position: relative;
}

.metcard1-section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #000c66;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Grid Layout */
.metcard1-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .metcard1-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .metcard1-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes metcard1-fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes metcard1-shimmer {
  0% {
    transform: translateX(-150%);
  }

  50% {
    transform: translateX(150%);
  }

  100% {
    transform: translateX(150%);
  }
}

@keyframes metcard1-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes metcard1-glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  }
}

/* Card Styling */
.metcard1-tool-card {
  background-color: #001f5b;
  color: #fff;
  border-radius: 12px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  animation: metcard1-fadeInUp 0.8s ease forwards, metcard1-pulse 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* Shimmer on Card */
.metcard1-tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: translateX(-150%);
  animation: metcard1-shimmer 6s infinite;
  pointer-events: none;
}

/* Hover Effects on Card */
.metcard1-tool-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* Icon Styling */
.metcard1-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  animation: metcard1-glow 4s ease-in-out infinite;
}

/* Icon Hover Effects */
.metcard1-tool-card:hover .metcard1-icon {
  background-color: #ffffff;
  color: #001f5b;
  transform: translateY(-5px) scale(1.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

/* Title Styling */
.metcard1-title {
  font-size: 1.1rem;
  font-weight: 500;
}


/* === Form Container === */
.equivalent-form {
  background-color: #ffffff;
  padding: 32px;
  border-radius: 8px;
  max-width: 720px;
  margin: 0 auto 32px auto;
  /* No space above, spacing below */
  border: 1px solid #e0e0e0;
}

/* === Form Title === */
.equivalent-form .form-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #222;
  text-align: left;
}

/* === Form Groups === */
.equivalent-form .form-group {
  margin-bottom: 20px;
}

.equivalent-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 15px;
  color: #333;
}

.equivalent-form select,
.equivalent-form input[type="text"] {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  color: #333;
}

/* === Submit Button === */
.equivalent-form .submit-btn {
  width: 100%;
  padding: 14px;
  background-color: #0056b3;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  margin-top: 10px;
}

/* === Table Container === */
.table-container {
  background-color: #ffffff;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 auto;
}

/* === Table Heading === */
.table-container h3 {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin-bottom: 20px;
}

/* === Table === */
.equivalent-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.equivalent-table thead {
  background-color: #0056b3;
  color: #ffffff;
}

.equivalent-table th,
.equivalent-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid #e6e6e6;
  vertical-align: middle;
}

.equivalent-table tr:nth-child(even) {
  background-color: #f4f4f4;
}

/* === Action Buttons in Table === */
.equivalent-table td:last-child {
  white-space: nowrap;
}

.equivalent-table1 {
  padding: 8px 12px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  margin-right: 8px;
  background-color: green;
  color: white;
  cursor: default;
  min-width: 60px;
  text-align: center;
}

.equivalent-table2 {
  padding: 8px 12px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  margin-right: 8px;
  background-color: red;
  color: white;
  cursor: default;
  min-width: 60px;
  text-align: center;
}

.user-result-wrapper {
  display: flex;
  justify-content: center;
  margin: 30px;
}

.user-result-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-result-heading {
  margin-bottom: 20px;
  text-align: center;
  font-size: 24px;
  /* font-family: math; */
  color: #333;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-box button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007bff;
  border: none;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-box button:hover {
  background-color: #0056b3;
}

.result-box {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.result-box ul {
  list-style-type: none;
  padding: 0;
}

.result-box li {
  margin-bottom: 10px;
  font-size: 16px;
}

.no-result {
  color: red;
  font-style: italic;
}

.autocomplete-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: white;
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  position: absolute;
  z-index: 10;
  width: 100%;
}

.autocomplete-list li {
  padding: 8px 12px;
  cursor: pointer;
}

.autocomplete-list li:hover {
  background-color: #f0f0f0;
}

.info-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px;
  background: linear-gradient(to right, #f9f9f9, #e8f0f9);
  /* border-radius: 16px; */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

}

.info-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* ✅ Horizontally center child items */
  justify-content: center;
  /* ✅ Vertically center if needed */
  gap: 12px;
  padding: 20px;
  width: 40%;
  text-align: center;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin: auto;
  /* Center sidebar if needed on small screens */
}

.info-button {
  background-color: #1f6f8b;
  color: white;
  border: none;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;

}

.info-button:hover {
  background-color: #155d74;
  transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .info-sidebar {
    width: 90%;
    max-width: none;
  }
}


.info-button:hover {
  background-color: #2792b7;
  transform: translateX(4px);
}


.info-button.active {
  background-color: #114b5f;
  /* A darker shade to show it's selected */
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}


.info-content {
  flex: 3 1 400px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #ccc;
  animation: fadeIn 0.4s ease;
  min-height: auto;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.info-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.info-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  animation: zoomIn 0.5s ease-in-out;
  margin-top: 10px;
}


.info-heading {
  font-size: 24px;
  color: #333;
  margin: 5px 15px;

}

.info-image {
  width: 50%;
  max-width: 300px;
  margin-bottom: 15px;
}

.info-description {
  font-size: 16px;
  color: #444;
}


/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .info-container {
    flex-direction: column;
    padding: 16px;
  }

  .info-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .info-button {
    flex: 1 1 45%;
    justify-content: center;
    text-align: center;
  }

  .info-content {
    padding: 16px;
    flex: 1 1 0px;
  }

  .info-image {
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
  }

  .info-button.active {
    background-color: #114b5f;
    /* A darker shade to show it's selected */
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
  }

}

.defect-page-content {
  padding: 40px 20px;
  background-color: #f8f9fa;
  min-height: 100vh;
  box-sizing: border-box;
}

.defect-form-container {
  background: #fff;
  padding: 10px 20px;
  max-width: 1000px;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-left: auto;
  margin-right: auto;
}

.defect-form-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  color: #222;
}

.defect-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.defect-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.defect-full-width {
  flex-direction: column;
}

.defect-half-width {
  flex: 1;
  min-width: 280px;
}

.defect-form-group {
  display: flex;
  flex-direction: column;
}

.defect-form-group label {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}

.defect-form-group input[type="text"],
.defect-form-group input[type="file"],
.defect-form-group textarea {
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.defect-form-group textarea {
  resize: vertical;
}

.defect-image-preview {
  margin-top: 10px;
}

.defect-image-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.defect-form-actions {
  text-align: center;
  margin-top: 20px;
}

.defect-submit-btn,
.defect-cancel-btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 10px;
}

.defect-submit-btn {
  background-color: #0066ff;
  color: white;
}

.defect-submit-btn:hover {
  background-color: #004ecb;
}

.defect-cancel-btn {
  background-color: #cfcbcb;
  color: #333;
}

.defect-cancel-btn:hover {
  background-color: #838282;
  color: white;
}

@media (max-width: 600px) {
  .defect-form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .defect-submit-btn,
  .defect-cancel-btn {
    width: 100%;
    margin: 0;
  }
}



@media (max-width: 768px) {
  .defect-form-row {
    flex-direction: column;
  }

  .defect-form-title {
    font-size: 24px;
  }
}

.defect-table-section {
  margin-top: 50px;
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.defect-table-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.defect-table {
  width: 100%;
  border-collapse: collapse;
}

.defect-table th,
.defect-table td {
  padding: 12px 16px;
  border: 1px solid #ddd;
  text-align: center;
}

.defect-thumbnail {
  height: 50px;
  width: auto;
  border-radius: 4px;
}

.defect-preview-btn,
.defect-edit-btn,
.defect-delete-btn {
  padding: 6px 12px;
  margin: 2px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.defect-preview-btn {
  background-color: #007bff;
  color: #fff;
}

.defect-edit-btn {
  background-color: #ffc107;
  color: #000;
}

.defect-delete-btn {
  background-color: #dc3545;
  color: #fff;
}

.defect-empty {
  text-align: center;
  color: #777;
  font-style: italic;
  padding: 20px;
}

/* Modal Styles */
.modal-image {
  max-width: 90%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

.defect-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.defect-modal {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  position: relative;
}

.defect-close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: black;
  color: #fff;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
}

.success-message {
  color: green;
  margin-bottom: 10px;
  font-weight: bold;
}



.grade-main-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.grade-search-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
  padding: 30px 40px;
}

.grade-search-title {
  font-size: 25px;
  font-weight: 600;
  /* font-family: math; */
  color: #2c3e50;
  margin-bottom: 1.5rem;
  position: relative;
  text-align: center;
  width: 100%;
}

.grade-search-input-group {
  position: relative;
}

.grade-search-field {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.grade-search-btn {
  display: block;
  margin: 0 auto;
  padding: 8px;
  background-color: #007bff;
  color: white;
  font-size: 18px;
  border: none;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.grade-search-btn:hover {
  background-color: #1064bd;
}

.grade-suggestions-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 180px;
  overflow-y: auto;
  z-index: 10;
  border-radius: 0 0 10px 10px;
}

.grade-suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.grade-suggestion-item:hover {
  background-color: #f0f8ff;
}

.grade-result-block {
  margin-top: 30px;
}

.grade-result-header {
  font-size: 2rem;
  color: #222;
  margin-bottom: 10px;
}

.grade-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.grade-result-entry {
  background-color: #f8f9fa;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  /* font-size: 1rem; */
}

.grade-lang-label {
  font-weight: 600;
  color: #333;
}

.grade-lang-result {
  color: #1c1b1b;
}

.grade-error-msg {
  color: #d9534f;
  margin-top: 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 640px) {
  .grade-search-card {
    padding: 24px 20px;
  }

  .grade-banner-title {
    font-size: 2rem;
  }

  .grade-search-btn,
  .grade-search-field {
    font-size: 0.95rem;
  }
}

/* DefaultAtlas.css */
/* Container Layout */
.atlas-container {
  display: flex;
  height: calc(100vh - 120px);
  /* Adjust for header and footer */
  overflow: hidden;
  background: linear-gradient(to right, #f4f7fc, #eef1f7);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
/* .atlas-sidebar {
  width: 25%;
  background: linear-gradient(to bottom, #1f5985, #10186a);
  color: white;
  padding: 30px 20px;
  box-sizing: border-box;
  overflow-y: auto;
  border-right: 2px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
} */

.atlas-heading {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: white;
  letter-spacing: 1px;
  /* font-family: math; */
}

/* Sidebar Buttons */
.atlas-topic-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
}

.atlas-topic-button {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 12px 16px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.atlas-topic-button:hover,
.atlas-topic-button.active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Content Area */
.atlas-content {
  width: 75%;
  padding: 40px;
  box-sizing: border-box;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title */
.atlas-title {
  font-size: 32px;
  font-weight: 800;
  color: #1e2b4a;
  text-align: center;
  position: relative;
  /* margin-bottom: 30px; */
  /* padding-bottom: 20px;   */
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* .atlas-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 4px;
  width: 100px;
  border-radius: 2px;
  background: linear-gradient(90deg, #100970, #828ad6);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
} */

/* Image Section */
.atlas-image-row {
  display: flex;
  gap: 24px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.atlas-image-small {
  width: 280px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.atlas-image-small:hover {
  transform: scale(1.05);
}

/* Description */
.atlas-description {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  white-space: pre-wrap;
  max-width: 900px;
  text-align: justify;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  margin-top: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .atlas-container {
    flex-direction: column;
    height: auto;
  }

  .atlas-sidebar {
    width: 100%;
    border-right: none;
    overflow-y: auto;

    border-bottom: 2px solid #ddd;
    height: auto;
  }

  .atlas-content {
    width: 100%;
    padding: 20px;
  }

  .atlas-title {
    font-size: 28px;
  }

  .atlas-image-small {
    width: 90%;
  }
}


.gp-wrapper {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px 80px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #111;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-radius: 20px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.gp-title {
  text-align: center;
  font-weight: 800;
  font-size: 3.2rem;
  margin: 60px 0 40px;
  color: #0369a1;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.gp-panels {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  padding-left: 40px;
}

.gp-panel {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  border-radius: 18px;
  padding: 30px 40px;
  box-shadow: 0 10px 20px rgba(3, 105, 161, 0.15);
  border-left: 6px solid #0369a1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.gp-panel:not(:first-child) {
  margin-left: 80px;
  /* slight horizontal offset for layered feel */
  z-index: 0;
}

.gp-panel:hover {
  transform: translateY(-10px) translateX(-20px);
  box-shadow: 0 16px 30px rgba(3, 105, 161, 0.3);
  z-index: 10;
  background: rgba(255, 255, 255, 0.5);
}

.gp-panel h2 {
  font-size: 1.9rem;
  margin-bottom: 18px;
  color: #034d6d;
  font-weight: 700;
}

.gp-panel p {
  font-size: 1.1rem;
  margin-bottom: 18px;
  line-height: 1.6;
  color: #134e66;
}

.gp-panel ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
  font-size: 1rem;
  color: #1e4e7a;
}

@media (max-width: 720px) {
  .gp-panels {
    padding-left: 0;
  }

  .gp-panel:not(:first-child) {
    margin-left: 0;
  }

  .gp-panel {
    padding: 25px 20px;
  }

  .gp-title {
    font-size: 2.4rem;
    margin-top: 40px;
  }
}



.feature-tile-section {
  padding: 4rem 2rem;
  background: #f9fafb;
  text-align: center;
}

.tile-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 3rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.tile-card {
  background: #dfe8ef;
  padding: 2rem 1.2rem;
  border-radius: 1.25rem;
  border: 1px solid #007bff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.tile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.tile-icon {
  font-size: 2.2rem;
  color: blue;
  margin-bottom: 0.8rem;
}

.tile-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111827;
}

/* Responsive layout */
@media (max-width: 1200px) {
  .tile-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .tile-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* Base container styling */
.info-container {
  max-width: 1400px;
  margin: 0px auto;
  padding: 20px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  color: #333;
}

/* Heading with vertical line */
.info-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Vertical line */
.vertical-line {
  width: 4px;
  height: 100%;
  background-color: #007bff;
  border-radius: 2px;
}

/* Heading text */
.info-heading h2 {
  /* font-size: 2rem;
  font-weight: bold;
  color: #211f3d;
  margin: 0;
  line-height: 1.2; */
  /* font-family: math; */
  font-size: 2.0rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  position: relative;
  line-height: 1.2;
}

/* Description paragraph */
.info-text {
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: justify;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .info-heading h2 {
    font-size: 1.4rem;
  }

  .info-text {
    font-size: 0.95rem;
  }
}


/* Main Container */
.grade-comparator-container {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  padding: 2rem 0;
  min-height: calc(100vh - 120px);
}

/* Wrapper */
.grade-comparator-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Description Section */
.description-section {
  padding: 2rem 0;
  margin-bottom: 2rem;
  display: flex;
  /* Fixed typo from 'dislay' */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.permanent-shadow-heading {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  position: relative;
  text-align: center;
  /* Ensures text alignment */
  width: 100%;
  /* Full width for proper centering */
  /* text-shadow: 1px 3px 0 rgba(0, 0, 0, 0.1),
    3px 3px 0 rgba(0, 0, 0, 0.05); */
}

/* Animation line that expands from center */
.permanent-shadow-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #3498db;
  transition: all 0.4s ease-out;
  border-radius: 3px;
}

.permanent-shadow-heading:hover::after {
  width: 30%;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.4) inset 0 0 8px rgba(52, 152, 219, 0.4);
}

.description-section h2 {
  font-size: 2.4rem;
  font-weight: 600;
  /* font-family: math; */
  color: #2c3e50;
  margin-bottom: 1.5rem;
  position: relative;
  text-align: center;
  /* Ensures text alignment */
  width: 100%;
  /* Full width for proper centering */
}

.description-section p {
  color: #555;
  font-size: 1.35rem;
  line-height: 1.7;
  max-width: 1500px;
  text-align: center;
  /* Center-align paragraph text */
  padding: 0 1.5rem;
  width: 100%;
  /* Full width for proper centering */
}

/* Section Titles */
.section-title {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-align: center;
}

.section-subtitle {
  color: #5a6a7a;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 400;
}

/* Input Section */
.grade-inputs-section {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2.5rem;
  border: 1px solid #e1e5eb;
}

.grade-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.input-group {
  display: flex;
  /* flex-direction: column; */
}

.input-group label {
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: #3d4e60;
  font-size: 1rem;
}

.input-group input {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border: 1px solid #d1d9e6;
  border-radius: 8px;
  background-color: #f8fafc;
  transition: all 0.3s ease;
  color: #2d3436;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-group input:focus {
  outline: none;
  border-color: #4a6ee0;
  box-shadow: 0 0 0 3px rgba(74, 110, 224, 0.15);
  background-color: white;
}

.input-group input::placeholder {
  color: #a3b1c2;
}

/* Results Section */
.results-section {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e5eb;
}

.table-header {
  margin-bottom: 2rem;
  text-align: center;
}

.table-title {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 0;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.table-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2b2a2a, #1c1b1b);
  border-radius: 3px;
}

/* Table Container */
.table-container {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Table Styling */
.composition-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 700px;
  background: #ffffff;
}

.composition-table th {
  padding: 1.25rem;
  text-align: center;
  font-weight: 600;
  color: white;
  /* background: linear-gradient(135deg, #5a6a7a 0%, #3a4a5a 100%); */
  border: none;
  position: sticky;
  top: 0;
}

/* .composition-table th:first-child {
  border-top-left-radius: 9px;
  background: linear-gradient(135deg, #6a7a8a 0%, #4a5a6a 100%);
}

.composition-table th:last-child {
  border-top-right-radius: 9px;
} */

.composition-table td {
  padding: 1.25rem;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  color: #555555;
  font-size: 0.95rem;
}

.composition-table tr:last-child td {
  border-bottom: none;
}

.composition-table tr:nth-child(even) td {
  background-color: #f9f9f9;
}

.composition-table tr:hover td {
  background-color: #f1f5fd;
}

/* Special Column Styling */
.element-column {
  width: 140px;
  font-weight: 600;
  color: white;
}

.grade-column {
  min-width: 200px;
}

.element-cell {
  font-weight: 500;
  color: #3b4e68;
  background-color: #f8fafd !important;
}

.value-cell {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
}

.grade-name {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: white;
  font-weight: 500;
}

.grade-type {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: normal;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .grade-comparator-wrapper {
    padding: 0 1rem;
  }

  .grade-inputs-section,
  .results-section {
    padding: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .table-title {
    font-size: 1.4rem;
  }

  .composition-table th,
  .composition-table td {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .grade-inputs {
    grid-template-columns: 1fr;
  }

  .grade-inputs-section,
  .results-section {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }
}

/* Root Container */
.micro-page-container {
  padding: 30px;
  max-width: 1200px;
  /* margin: 0 auto; */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* Header */
.micro-form-header {
  text-align: center;
  margin-bottom: 30px;
}

.micro-form-header h1 {
  font-size: 28px;
  color: #2c3e50;
  font-weight: 700;
}

/* Form Styles */
.micro-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
  border: 1px solid #e0e0e0;
}

.micro-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.micro-form label {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 600;
  color: #555;
}

.micro-form input,
.micro-form select,
.micro-form textarea {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: border 0.3s, box-shadow 0.3s;
}

.micro-form input:focus,
.micro-form select:focus,
.micro-form textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
  outline: none;
}

.micro-form-full {
  grid-column: 1 / -1;
}

.micro-form-submit {
  margin-top: 25px;
  padding: 12px 24px;
  background-color: #3498db;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.micro-form-submit:hover {
  background-color: #2980b9;
}

/* Table Section */
.micro-table-heading {
  margin-top: 20px;
  font-size: 22px;
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Table Styling */
.micro-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.micro-table th,
.micro-table td {
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.micro-table th {
  background-color: #f8f9fa;
  color: #444;
  font-weight: 600;
}

.micro-table td {
  background-color: #fff;
}

.micro-table-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Table Buttons */
.micro-table-btn {
  margin: 4px;
  padding: 6px 12px;
  font-size: 13px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.micro-table-btn.edit {
  background-color: #f39c12;
  color: #fff;
}

.micro-table-btn.edit:hover {
  background-color: #d68910;
}

.micro-table-btn.delete {
  background-color: #e74c3c;
  color: white;
}

.micro-table-btn.delete:hover {
  background-color: #c0392b;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .micro-form-grid {
    grid-template-columns: 1fr;
  }

  .micro-form-submit {
    width: 100%;
  }

  .micro-table th,
  .micro-table td {
    font-size: 13px;
    padding: 10px;
  }

  .micro-table-img {
    width: 40px;
    height: 40px;
  }

  .micro-table-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
}

.error-message {
  color: red;
  margin-bottom: 10px;
}

.loading-message {
  color: #007bff;
  margin-bottom: 10px;
}

.micro-form-buttons {
  display: flex;
  gap: 10px;
}

.micro-form-cancel {
  background-color: #6c757d;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

.micro-table-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.atlas-page-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  /* Adjust depending on header/footer */
  overflow: hidden;
}

.atlas-sidebar {
  width: 25%;
  padding: 20px;
  background-color: #166ac4;
  border-right: 1px solid #ddd;
  overflow-y: auto;
  /* height: calc(100vh - 100px); */

}

.search-input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #333;
  font-size: 16px;
  margin-bottom: 20px;
}

.atlas-topic-button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 5px;
  text-align: left;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.atlas-topic-button.active,
.atlas-topic-button:hover {
  background-color: white;
  color: black;
}

.grade-details-wrapper {
  width: 75%;
  padding: 30px;
  box-sizing: border-box;
}

.grade-info-box,
.structure-info-box {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.grade-heading {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
  /* font-family: math; */
  text-align: center;
}

.grade-name {
  font-size: 20px;
  margin-bottom: 20px;
  color: #444;
  text-align: center;
}

.grade-images-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.grade-image-wrapper {
  flex: 1 1 300px;
  max-width: 300px;
  overflow: hidden;
  text-align: center;
}

.grade-image {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  transform-origin: center center;
  cursor: zoom-in;
}


.grade-zoom-label {
  font-size: 14px;
  color: #777;
  margin-top: 5px;
}

.grade-etchant {
  font-size: 16px;
  color: #555;
  text-align: center;
}

.structure-heading {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}

.structure-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  white-space: pre-wrap;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .atlas-page-wrapper {
    flex-direction: column;
    height: auto;
  }

  .atlas-sidebar {
    width: 100%;
    height: auto;
    overflow-y: auto;

    border-right: none;
    border-bottom: 2px solid #ddd;
  }

  .grade-details-wrapper {
    width: 100%;
    padding: 20px;
  }

  .grade-images-row {
    flex-direction: column;
    align-items: center;
  }

  .grade-image-wrapper {
    max-width: 90%;
  }
}

.rich-section {
  background: #f3f6fa;
  padding: 2rem 0 2.5rem;
  position: relative;
  border-top: 2px solid #007bff;
  box-sizing: border-box;
}

.ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background: #1f1f1f;
  color: white;
  padding: 1.3rem 1.8rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-bottom-right-radius: 6px;
  z-index: 1;
}

.rich-container {
  max-width: 1250px;
  text-align: justify;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-family: 'Segoe UI', sans-serif;
  color: #1d1d1d;
}

.rich-container header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  color: #1f1f1f;
  /* font-family: math; */
  margin-bottom: 1.8rem;
  font-weight: 700;
}

.rich-container header h1 span {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 0.5rem;
  color: #35618f;
}

.rich-container article {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #2b2b2b;
}

.rich-container article p {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.rich-container article mark {
  background: rgb(217, 234, 238);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  color: #007bff;
  font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .rich-container {
    padding: 0 1rem;
  }

  .rich-container header h1 {
    font-size: 1.7rem;
  }

  .rich-container header h1 span {
    font-size: 1rem;
  }

  .rich-container article {
    font-size: 1.05rem;
  }
}


.mh-grid-unique {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Card */
.mh-card-unique {
  background: rgba(112, 102, 201, 0.4);
  /* Semi-transparent white base */
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.mh-card-unique:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
  background: rgba(230, 230, 230, 0.5);
  /* Slightly greyish on hover */
  border: 1px solid rgba(230, 230, 230, 0.6);
}

/* Nucleus */
.mh-card-unique::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #00bcd4;
  /* Cyan nucleus */
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: -1;
}

.mh-card-unique:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Electrons */
.mh-card-unique>span {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: -1;
  top: 50%;
  left: 50%;
}

.mh-card-unique:hover>span {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}



/* Icons */
.mh-icon-unique {
  font-size: 2.8rem;
  color: #374151;
  /* Dark grey icon */
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.mh-card-unique:hover .mh-icon-unique {
  color: #1b1599;
  /* Blue on hover */
}

/* Text */
.mh-card-unique p {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  /* Dark grey text */
  position: relative;
  z-index: 1;
}

.mh-subtext {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 0.4rem;
  color: #4a5568;
  /* Medium grey subtext */
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .mh-title-unique {
    font-size: 1.9rem;
  }

  .mh-title-unique1 {
    font-size: 1.9rem;
  }

  .mh-icon-unique {
    font-size: 2.3rem;
  }

  .mh-card-unique p {
    font-size: 1.05rem;
  }
}

/* Base Reset & Utilities (you can use a reset.css or normalize.css for this) */

.mh-grid-unique {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Card */
.mh-card-unique {
  background: rgba(26, 31, 75, 0.9);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mh-card-unique:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 28px rgba(255, 255, 255, 0.15);
  background: rgba(16, 9, 71, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Nucleus */
.mh-card-unique::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 0;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

.mh-card-unique:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: pulseNucleus 2s ease-in-out infinite;
}

@keyframes pulseNucleus {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Orbits */
.mh-card-unique::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(0deg);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 0;
}

.mh-card-unique:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(45deg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: rotateOrbits 20s linear infinite;
}

@keyframes rotateOrbits {
  from {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
  }
}

/* Electrons */
.mh-card-unique:not(:hover)>span {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0) !important;
  animation: none !important;
}

/* Make electrons visible and animate them on hover */
.mh-card-unique:hover>span {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* Add orbitHover1 to orbitHover12 here – omitted for brevity */

/* Icons */
.mh-icon-unique {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.mh-card-unique:hover .mh-icon-unique {
  color: rgba(255, 255, 255, 1);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
  animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Text */
.mh-card-unique p {
  font-size: 1.5rem;
  font-weight: bolder;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

.mh-subtext {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 2;
}

/* Electron 1 */
.mh-card-unique>span:nth-child(1) {
  width: 5px;
  height: 5px;
  background-color: #f44336;
  /* Red */
  margin-top: -15px;
  margin-left: -15px;
  animation: orbitHover1 2s linear infinite;
}

@keyframes orbitHover1 {
  from {
    transform: rotate(0deg) translateX(15px) rotate(0deg) scale(0.8);
    opacity: 0.8;
  }

  to {
    transform: rotate(360deg) translateX(15px) rotate(-360deg) scale(1);
    opacity: 1;
  }
}

/* Electron 2 */
.mh-card-unique>span:nth-child(2) {
  width: 7px;
  height: 7px;
  background-color: #ffc107;
  /* Yellow */
  margin-top: 20px;
  margin-left: 20px;
  animation: orbitHover2 2.5s linear infinite reverse;
}

@keyframes orbitHover2 {
  from {
    transform: rotate(0deg) translateX(20px) rotate(0deg) scale(0.8);
    opacity: 0.8;
  }

  to {
    transform: rotate(-360deg) translateX(20px) rotate(360deg) scale(1);
    opacity: 1;
  }
}

/* Electron 3 */
.mh-card-unique>span:nth-child(3) {
  width: 4px;
  height: 4px;
  background-color: #4caf50;
  /* Green */
  margin-top: -22px;
  margin-left: 22px;
  animation: orbitHover3 1.8s linear infinite;
}

@keyframes orbitHover3 {
  from {
    transform: rotate(0deg) translateX(22px) rotate(0deg) scale(0.8);
    opacity: 0.8;
  }

  to {
    transform: rotate(360deg) translateX(22px) rotate(-360deg) scale(1);
    opacity: 1;
  }
}

/* Electron 4 */
.mh-card-unique>span:nth-child(4) {
  width: 6px;
  height: 6px;
  background-color: whitesmoke;
  /* Pink */
  margin-top: 18px;
  margin-left: -18px;
  animation: orbitHover4 3s linear infinite reverse;
}

@keyframes orbitHover4 {
  from {
    transform: rotate(0deg) translateX(18px) rotate(0deg) scale(0.8);
    opacity: 0.8;
  }

  to {
    transform: rotate(-360deg) translateX(18px) rotate(360deg) scale(1);
    opacity: 1;
  }
}

/* Electron 5 to 24 */
.mh-card-unique>span:nth-child(5) {
  animation: orbitHover3 2.3s linear infinite;
  margin-top: -55px;
  margin-left: 25px;
  width: 6px;
  height: 6px;
  background-color: white;
}

.mh-card-unique>span:nth-child(6) {
  animation: orbitHover2 3.2s linear infinite reverse;
  margin-top: 106px;
  margin-left: -26px;
  width: 6px;
  height: 6px;
  background-color: whitesmoke;
}

.mh-card-unique>span:nth-child(7) {
  animation: orbitHover1 3.5s linear infinite;
  margin-top: -68px;
  margin-left: 18px;
  width: 6px;
  height: 6px;
  background-color: whitesmoke;
}

.mh-card-unique>span:nth-child(8) {
  animation: orbitHover4 3.5s linear infinite reverse;
  margin-top: 20px;
  margin-left: 28px;
  width: 6px;
  height: 6px;
  background-color: whitesmoke;
}

.mh-card-unique>span:nth-child(9) {
  animation: orbitHover2 2.8s linear infinite;
  margin-top: -50px;
  margin-left: -2px;
  width: 6px;
  height: 6px;
  background-color: whitesmoke;
}

.mh-card-unique>span:nth-child(10) {
  animation: orbitHover4 4.5s linear infinite reverse;
  margin-top: 10px;
  margin-right: 10px;
  width: 6px;
  height: 6px;
  background-color: whitesmoke;
}

@keyframes orbitHover13 {
  from {
    transform: rotate(0deg) translateX(34px) rotate(0deg) scale(0.8);
    opacity: 0.8;
  }

  to {
    transform: rotate(360deg) translateX(34px) rotate(-360deg) scale(1);
    opacity: 1;
  }
}

@keyframes orbitHover12 {
  from {
    transform: rotate(0deg) translateX(84px) rotate(0deg) scale(0.8);
    opacity: 0.8;
  }

  to {
    transform: rotate(360deg) translateX(34px) rotate(-360deg) scale(1);
    opacity: 1;
  }
}

/* Repeat for orbitHover14 to orbitHover24 with appropriate translateX() values */

.intro-container {
  display: flex;
  min-height: 100vh;
  background: #f9f9f9;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.intro-text {
  flex: 2;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-text h1 {
  font-size: 36px;
  margin-bottom: 10px;
  /* font-family: math; */
  color: #1c1b1b;
}

.subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  color: #555;
}

.features p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.try-button {
  margin-top: 20px;
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.try-button:hover {
  background-color: #0473e9, ;
  color: white;
}

.intro-side {
  flex: 1;
  background: linear-gradient(155deg, #698eb8, #007bff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: white;
}

.highlight-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.highlight-box h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.highlight-box p {
  font-size: 16px;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .intro-container {
    flex-direction: column;
  }

  .intro-side {
    order: -1;
    padding: 20px;
  }

  .intro-text {
    padding: 30px 20px;
  }
}

.micro-explorer-wrapper {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 40px 20px;
  background: #f4f7fa;
  color: #2c3e50;
}

.micro-explorer-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.micro-explorer-header h1 {
  font-size: 40px;
  color: #262e36;
  margin-bottom: 10px;
  /* font-family: math; */
}

.micro-explorer-header p {
  font-size: 18px;
  color: #555;
}

.micro-explorer-timeline {
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding-left: 20px;
  border-left: 4px solid #004ecb;
}

.micro-timeline-item {
  display: flex;
  margin-bottom: 40px;
  align-items: center;
  gap: 40px;
}

.micro-timeline-item.reverse {
  flex-direction: row-reverse;
  text-align: right;
}

.micro-image-placeholder {
  flex: 1;
  height: 200px;
  background: #d0e4f5;
  border: 2px dashed #2809b4;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #1f3b61;
  border-radius: 8px;
}

.micro-text-block {
  flex: 2;
}

.micro-text-block h2 {
  font-size: 24px;
  color: #004ecb;
  margin-bottom: 10px;
}

.micro-text-block p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

/* Timeline dot */
.micro-timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  background: rgb(196, 224, 226);
  border: 3px solid #004ecb;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {

  .micro-timeline-item,
  .micro-timeline-item.reverse {
    flex-direction: column;
    text-align: left;
  }

  .micro-timeline-item.reverse .micro-text-block {
    text-align: left;
  }

  .micro-explorer-timeline {
    padding-left: 10px;
  }
}

.micro-image-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.micro-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.micro-image:hover {
  transform: scale(1.03);
}

.custom-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  /* min-height: 50vh; */
  background: rgb(241 246 248);
}

.custom-card {
  background: #032a68;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  width: 320px;
  height: 390px;
  margin: 30px;
  border-radius: 20px;
  border-bottom-left-radius: 160px;
  border-bottom-right-radius: 160px;
  box-shadow: 0 13px 0 #fff, inset 0 -10px 0 rgb(14 14 14 / 24%), 0 30px 0 rgb(0 0 0 / 60%);
  overflow: hidden;
}

.custom-card::before {
  content: "";
  position: absolute;
  top: -140px;
  left: -40%;
  padding: 0;
  width: 100%;
  height: 120%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
  transform: rotate(35deg);
  pointer-events: none;
  filter: blur(5px);
}

.custom-card-1 {
  background: linear-gradient(to bottom, #4192e9, #3f7fc4);
}

.custom-card-2 {
  background: linear-gradient(to bottom, #4192e9, #3f7fc4);
}

.custom-card-3 {
  background: linear-gradient(to bottom, #4192e9, #3f7fc4);
}

.custom-icon {
  position: relative;
  width: 140px;
  height: 120px;
  background: rgb(241 246 248);
  border-bottom-left-radius: 100px;
  border-bottom-right-radius: 100px;
  box-shadow: 0 15px 0 rgba(0, 0, 0, 0.1),
    inset 0 -8px 0 #fff;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.custom-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50px;
  width: 50px;
  height: 50px;
  background: transparent;
  border-top-right-radius: 50px;
  box-shadow: 15px -15px 0 15px rgb(241 246 248);
}

.custom-icon::after {
  content: "";
  position: absolute;
  top: 0;
  right: -50px;
  width: 50px;
  height: 50px;
  background: transparent;
  border-top-left-radius: 50px;
  box-shadow: -15px -15px 0 15px rgb(241 246 248);
}

.custom-icon ion-icon {
  color: #fff;
  position: relative;
  font-size: 6em;
  z-index: 1000;
  --ionicon-stroke-width: 24px;
}

.custom-content {
  position: absolute;
  width: 100%;
  padding: 30px;
  padding-top: 135px;
  text-align: center;
}

.custom-content h2 {
  font-size: 1.8em;
  color: #fff;
  margin-bottom: 15px;
}

.custom-content p {
  color: #fff;
  line-height: 1.5em;
}

.mh-title-unique1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: black;
  text-align: center;
  margin-bottom: 0px;
  background-color: rgb(241 246 248);
  /* font-family: math; */
  position: relative;
}

.mh-title-unique1::after {
  content: "";
  display: block;
  width: 200px;
  /* Max width */
  height: 4px;
  background-color: rgb(22, 90, 214);
  border-radius: 5px;
  margin: 0.5rem auto 0;
  transform: scaleX(0.4);
  /* Initial width (40%) */
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mh-title-unique1:hover::after {
  transform: scaleX(1);
  /* Full width */
}

.hovercards-title {
  position: relative;
  /* display: inline-block; */
  font-size: 2.75rem;
  font-weight: 700;
  text-align: center;
  margin: 2rem auto;
  text-shadow: 1px 1px 0px hsl(40, 20%, 90%), -1px 1px 0px hsl(40, 20%, 90%);
}

.hovercards-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.hovercard {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  background: rgba(30, 30, 50, 0.9);
  transition: 0.35s ease-in-out;
}

.hovercard-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hovercard-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) grayscale(20%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.hovercard-title {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
  z-index: 1;
  position: relative;
}

.hovercard-desc {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  margin-bottom: 1.125rem;
  position: relative;
  z-index: 1;
}

.hovercard-link {
  position: relative;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  z-index: 1;
  transition: all 0.35s ease;
}

.hovercard-link::after {
  content: ">";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  border: 2px solid #fff5;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  transition: all 0.35s ease;
}

.hovercard-link::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0.125rem;
  background: #fff;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  transition: width 0.35s ease;
}

.hovercard:hover {
  background: rgba(40, 40, 70, 0.85);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.15);
}

.hovercard:hover .hovercard-image {
  transform: scale(1.2) rotate(-5deg);
  filter: blur(8px) grayscale(0);
}

.hovercard:hover .hovercard-link {
  color: #ffd700;
}

.hovercard:hover .hovercard-link::after {
  border-color: transparent;
  margin-left: 2rem;
}

.hovercard:hover .hovercard-link::before {
  width: 1.5rem;
  background: #ffd700;
}

.ionicon {
  color: #333;
}

.comp-card {
  padding: 1rem 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Grade */
.comp-grade-container {
  margin-bottom: 0.5rem;
}

.comp-grade-text {
  font-size: 1.375rem;
  font-weight: 600;
  color: #007bff;
  margin: 0;
  text-align: center;
}

.comp-grade-text span {
  font-weight: 700;
  color: #0f172a;
}

/* Table Heading */
.comp-table-heading {
  margin-bottom: 1rem;
}

.comp-table-heading h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #334155;
  margin: 0;
  border-top: 2px solid #e2e8f0;
  padding-top: 0.25rem;
}

/* Table Wrapper */
.comp-table-wrapper {
  overflow-x: auto;
  border-radius: 0.5rem;
  background: #fff;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comp-table th,
.comp-table td {
  border: 1px solid #b5b7ba;
  padding: 0.75rem 1rem;
  text-align: center;
}

.comp-table th {
  background-color: #add1f8c7;
  font-weight: 700;
  /* text-transform: uppercase; */
  font-size: 0.9rem;
}

.no-data-msg {
  text-align: center;
  color: #64748b;
  padding: 1rem;
}

/* User info layout */
.user-info-container {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.user-info-group {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 1rem;
}

.info-item {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
}

.info-label {
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.info-value {
  color: #555;
}

/* Table full-width desktop / scrollable on mobile */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
}

.responsive-bordered-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
  table-layout: fixed;
}

.responsive-bordered-table th,
.responsive-bordered-table td {
  border: 1px solid #ccc;
  padding: 0.75rem 1rem;
  text-align: left;
  word-wrap: break-word;
}

.responsive-bordered-table th {
  background-color: #c2d7eb;
  font-weight: 600;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .table-responsive-wrapper {
    overflow-x: auto;
  }

  .responsive-bordered-table {
    min-width: 600px;
    /* Keep fixed width so it scrolls */
  }

  .user-info-group {
    flex-direction: column;
  }
}

/* Grade Comparator Custom UI */
.grade-header h1,
.grade-header p,
.table-title,
.permanent-shadow-heading {
  color: #007bff;
}

.grade-comparator-container {
  padding: 2rem;
}

.grade-comparator-wrapper {
  max-width: 1200px;
  margin: auto;
}

.description-section {
  text-align: center;
  margin-bottom: 2rem;
}

.grade-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.grade-input-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.25rem;
}

.grade-input-group input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.3rem;
  border: 1px solid #ccc;
}

.table-container {
  overflow-x: auto;
  margin: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.composition-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  min-width: 600px;
  border-bottom: 1px solid #e2e2e2;
}

.composition-table th,
.composition-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center;
}

.composition-table thead {
  background-color:#333;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1;
  border-radius: 0px;
}


.composition-table thead th {
  padding: 1rem;
  font-size: 1.3rem;

  color: #ffffff;
}

.composition-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.composition-table tbody tr:hover {
  background-color: #f0f8ff;
}

.composition-table td {
  padding: 0.75rem;
  border: 1px solid #e2e2e2;
  font-size: 0.95rem;
}

.table-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: black;
  /* font-family: math; */
}

.grade-name {
  font-weight: 600;
  font-size: 1.3rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: auto;
}

/* styles.css */

.financial-section {
  padding: 3rem 1rem;
  background-color: #f9fafb;
}

.financial-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.financial-title {
  /* font-size: 2.5rem; */
  font-weight: bold;
  color: #111827;
  line-height: 1.2;
}

.financial-description {
  max-width: 900px;
  margin-top: 1rem;
  color: #374151;
  font-size: 18px;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .financial-header {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.feature-card {
  background-color: #ffffff;
  border-bottom: 4px solid transparent;
  /* Default to allow override */
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

.feature-icon {
  font-size: 1.75rem;
  color: #007bff;
}

.feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 0.5rem;
}

.feature-text {
  font-size: 16px;
  color: #374151;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Border colors */
.feature-border-green {
  border-color: #10b981;
}

.feature-border-yellow {
  border-color: #f59e0b;
}

.feature-border-orange {
  border-color: #fbbf24;
}

.feature-border-blue {
  border-color: #3b82f6;
}

.feature-border-purple {
  border-color: purple;
}

.feature-border-last {
  border-color: #000c66;
}


.ms-details-container {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  background-color: #f9f9f9;
}

.ms-details-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
}

.ms-details-grade {
  font-size: 20px;
  color: #555;
  margin-bottom: 20px;
}

.ms-details-images {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.ms-image-wrapper {
  text-align: center;
}

.ms-details-image {
  max-width: 300px;
  height: auto;
  border-radius: 5px;
  cursor: zoom-in;
}

.ms-zoom-label {
  margin-top: 5px;
  font-size: 14px;
  color: #666;
}

.ms-details-etchant {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

.ms-details-description h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.ms-details-description p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.ms-back-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #6c757d;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.ms-back-button:hover {
  background-color: #5a6268;
}


.rfac-container {
  background-color: #f0f6ff;
  font-family: 'Segoe UI', sans-serif;
  padding: 50px 20px;
}

.rfac-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1500px;
  margin: 0 auto;
}

.rfac-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(13, 110, 253, 0.15);
  transform: translateY(70px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.rfac-card.visible {
  opacity: 1;
  transform: translateY(0);
}


@keyframes rfac-fadeIn {
  from {
    opacity: 0;
    transform: translateY(70px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rfac-card-header {
  background-color: #007bff;
  color: white;
  padding: 20px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.rfac-card-body {
  padding: 25px 20px 30px;
}

.rfac-card-subtitle {
  text-align: center;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 16px;
}

.rfac-info {
  /* display: flex; */
  align-items: center;
  margin-bottom: 12px;
  color: #333;
}

.rfac-info i {
  color: #0d6efd;
  margin-right: 10px;
  font-size: 1.1rem;
}

.rfac-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d6efd, #3b8ef5);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  z-index: 1;
  text-decoration: none;
}

.rfac-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.6s ease;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 0;
}

.rfac-btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.rfac-btn:hover {
  transform: scale(1.05);
  /* box-shadow: 0 0 20px rgba(13, 110, 253, 0.4), 0 8px 20px rgba(13, 110, 253, 0.3); */
  color: white;
}

@media (max-width: 768px) {
  .rfac-card-row {
    grid-template-columns: 1fr;
  }
}

.rfac-card:hover {
  transform: translateY(0) scale(1.03);
  z-index: 2;
}

/* Add this CSS to your /assets/css/style.css or inline style */
/* Modal Styles (Override or Add to existing styles) */
.defect-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;

  box-sizing: border-box;
}

.defect-modal {
  background: #fff;
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 8px;
  margin-top: 40px;
  padding: 20px;
  position: relative;
  box-sizing: border-box;
}

.defect-modal h3 {
  margin-top: 0;
  font-size: 1.5rem;
  text-align: center;
}

.defect-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f00;
  color: white;
  border: none;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .defect-modal {
    max-width: 100%;
    width: 100%;
    padding: 1rem;
  }

  .defect-form-row {
    flex-direction: column;
  }

  .defect-form-group.defect-half-width {
    width: 100%;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.pagination button {
  padding: 6px 12px;
  background-color: #007bff;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.pagination button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}


/* Keep rest of the AddArticle component JSX as is */

/* Base Styles */
.latest-uploads-container {
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

.latest-uploads-heading {
  text-align: center;
  color: #272c39;
  margin-bottom: 2.5rem;
  font-size: 26px;
  font-weight: 800;
  animation: fadeIn 0.6s ease-out;
}

.latest-uploads-loading {
  text-align: center;
  font-size: 1.25rem;
  color: #4b5563;
  animation: pulse 1.5s infinite;
}

.latest-uploads-card {
  display: flex;
  flex-direction: row;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 1rem; /* Added padding to the card */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.5s ease-out forwards;
}

.latest-uploads-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.latest-uploads-image-container {
  width: 200px; /* Reduced width to prevent oversized images */
  aspect-ratio: 4 / 3; /* Maintain consistent image ratio */
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.5rem; /* Added border-radius for better aesthetics */
}

.latest-uploads-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed to contain to ensure full image visibility */
  display: block;
  transition: transform 0.3s ease;
}

.latest-uploads-image:hover {
  transform: scale(1.05);
}

.latest-uploads-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.latest-uploads-title {
  font-size: 1.75rem;
  color: #007bff;
  margin-bottom: 1rem;
  font-weight: 600;
}

.latest-uploads-description {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-uploads-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.latest-uploads-date {
  font-size: 0.95rem;
  color: #6b7280;
}

.latest-uploads-button {
  background-color: #007bff;
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.latest-uploads-button:hover {
  background-color: #007bff;
  transform: scale(1.05);
  color: white;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .latest-uploads-container {
    padding: 2rem 1rem;
  }

  .latest-uploads-heading {
    font-size: 1.75rem;
  }

  .latest-uploads-card {
    flex-direction: column;
    max-width: 100%;
    padding: 0.75rem; /* Adjusted padding for smaller screens */
  }

  .latest-uploads-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto; /* Allow height to adjust based on aspect ratio */
  }

  .latest-uploads-details {
    padding: 1.25rem;
  }

  .latest-uploads-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .latest-uploads-button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .latest-uploads-heading {
    font-size: 1.5rem;
  }

  .latest-uploads-title {
    font-size: 1.25rem;
  }

  .latest-uploads-description {
    font-size: 0.9rem;
  }

  .latest-uploads-image-container {
    aspect-ratio: 4 / 3;
  }

  .latest-uploads-card {
    padding: 0.5rem; /* Further reduced padding for very small screens */
  }
}

.image-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.image-group {
  flex: 1;
  min-width: 150px;
}

/* General Layout */
.art-container {
  max-width: 1200px;
  /* margin: 0 auto; */
  padding: 20px;
}

.art-main-panel {
  margin-left: 250px;
  /* Adjust for sidebar width */
  padding: 20px;
}

.art-wrapper.art-sidebar-minimize .art-main-panel {
  margin-left: 0;
}

.art-form-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333333;
}

/* Form Styles */
.art-form-container {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.art-form-group {
  margin-bottom: 20px;
}

.art-form-label {
  display: block;
  color: #333333;
  font-weight: 600;
  margin-bottom: 8px;
}

.art-form-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 16px;
}

.art-form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.art-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.art-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333333;
}

.art-section-title {
  font-size: 16px;
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333333;
}

.art-input-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.art-input-group.art-text-group {
  align-items: flex-start;
}

.art-input-item {
  flex: 1;
}

.art-input-item.art-sequence {
  width: 120px;
}

.art-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
}

.art-btn-primary {
  background: #007bff;
  color: #ffffff;
}

.art-btn-primary:hover {
  background: #0056b3;
}

.art-btn-success {
  background: #28a745;
  color: #ffffff;
}

.art-btn-success:hover {
  background: #1e7e34;
}

.art-btn-danger {
  background: #dc3545;
  color: #ffffff;
}

.art-btn-danger:hover {
  background: #c82333;
}

.art-btn-secondary {
  background: #6c757d;
  color: #ffffff;
}

.art-btn-secondary:hover {
  background: #5a6268;
}

.art-divider {
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 20px 0;
}

.art-form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* Table Styles */
.art-table-container {
  margin-top: 30px;
}

.art-table-wrapper {
  overflow-x: auto;
}

.art-articles-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.art-articles-table th,
.art-articles-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dddddd;
}

.art-articles-table th {
  background: #f1f1f1;
  color: #333333;
  font-weight: 600;
}

.art-articles-table tr:hover {
  background: #f9f9f9;
}

.art-articles-table td {
  font-size: 14px;
}

.art-btn-small {
  padding: 6px 12px;
  font-size: 13px;
  margin-right: 10px;
}

.art-loading-text {
  color: #666666;
  font-size: 16px;
  text-align: center;
  margin-top: 20px;
}

.art-existing-image {
  font-size: 12px;
  color: #666666;
  margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .art-main-panel {
    margin-left: 0;
  }

  .art-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .art-input-item.art-sequence {
    width: 100%;
    margin-top: 10px;
  }

  .art-btn {
    width: 100%;
    margin-top: 10px;
  }

  .art-form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .art-articles-table th,
  .art-articles-table td {
    font-size: 13px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .art-container {
    padding: 10px;
  }

  .art-form-title {
    font-size: 20px;
  }

  .art-card-title {
    font-size: 16px;
  }

  .art-section-title {
    font-size: 14px;
  }
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  background-color: #2c2b2b;
  padding: 0.8rem 0;
}

.marquee-track {
  display: flex;
  width: fit-content;
  animation: marquee-scroll 60s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem; /* spacing between title + separator */
  padding: 0 4rem;
}

.marquee-title-text {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  white-space: nowrap;
}

.vertical-separator {
  display: inline-block;
  width: 2px;
  height: 2rem; /* change this for taller lines */
  background-color: white;
  vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .marquee-title-text {
    font-size: 1rem;
  }

  .vertical-separator {
    height: 1rem;
    margin: 0 0.8rem;
  }

  .marquee-content {
    gap: 1.5rem;
    padding: 0 2rem;
  }
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}


.detailed-article-container {
  max-width: 960px;
  margin: auto;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.detailed-article-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #007bff;
}

.detailed-article-block {
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 30px;
}

.upload-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.upload-image img {
  max-width: 400px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.upload-text {
  flex: 1;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  min-width: 250px;
}

.upload-date {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #666;
}

.article-footer {
  text-align: center;
  margin-top: 40px;
}

.back-button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
}

.back-button:hover {
  background-color: #0056b3;
}


/* Full viewport padding and cleanup */
.article-wrapper {
  background-color: #d5e0ed;
  padding: 80px 16px 60px; /* Increased top padding to 80px */
  box-sizing: border-box;
}


/* Responsive content area */
.article-content-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  padding: 30px 24px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

/* Title */
.article-title {
  font-size: 2.0rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: #222;
}

/* Block spacing */
.article-block {
  margin-bottom: 36px;
}

/* Image styling */
.article-image-container {
  text-align: center;
  margin-bottom: 12px;
}

.article-image {
  width: 100%;
  max-width: 60%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Text styling */
.article-text {
  font-size: 18px; /* 18px */
  line-height: 1.75;
  color: #333;
  padding: 0 4px;
  word-wrap: break-word;
}

.article-text p{
  font-size: 17px;
}

/* Loading / Error */
.article-loading,
.article-error {
  text-align: center;
  margin-top: 4rem;
  font-size: 1.2rem;
  color: #777;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .article-content-container {
    padding: 20px 16px;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-text {
    font-size: 1.05rem;
  }
}
