html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Styles for page top button  */


/* ------------------------------------------------------------------------------------------------------------------------------------------ */

@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+Sinhala:wght@400&display=swap");

/* Button container to center align */
.button-container-new {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  padding-bottom: 80px;
}

/* Reset styles for all anchor tags within custom-button */
.custom-button {
  width: 225px;
  height: 155px;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  border: 2px solid #3498db;
  border-radius: 5px;
  transition: background-color 0.4s ease, transform 0.4s ease,
    box-shadow 0.4s ease;
  color: #3498db;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  text-align: center;
  text-decoration: none;
  padding-top: 10px;
  font-family: "Noto Serif Sinhala", serif;
}

/* Ensuring all buttons are uniform in size */
.custom-button i {
  font-size: 26px;
  margin-right: 10px;
  transition: color 0.4s ease;
}

/* Default button colors */
.btn-color-1 {
  background-color: #a125af;
  color: #fc90e6;
}

.btn-color-2 {
  background-color: #8f0202;
  color: #ffb1a9;
  /* border-color: #e7de3c; */
}

.btn-color-3 {
  background-color: #f39c12;
  color: #4d3003;
}

.btn-color-4 {
  background-color: #025223;
  color: #2ecc71;
}

.btn-color-5 {
  background-color: #ca6fee;
  color: #4b0865;
}

.btn-color-6 {
  background-color: #6a3105;
  color: #f67b33;
}

.btn-color-7 {
  background-color: #05126a;
  color: #68e9fa;
}

.btn-color-8 {
  background-color: #6a054a;
  color: #f67b33;
}

.btn-color-9 {
  background-color: #e56e14;
  color: #f6c933;
}

.btn-color-10 {
  background-color: #6a0523;
  color: #ffaa79;
}

.btn-color-11 {
  background-color: #28d877;
  color: #053b08;
}

.btn-color-12 {
  background-color: #6a6005;
  color: #b8ff79;
}

.btn-color-13 {
  background-color: #486916;
  color: #b8ff79;
}

.btn-color-14 {
  background-color: #b22007;
  color: #dacb1e;
}

.btn-color-15 {
  background-color: #006c74;
  color: #65ffe3;
}

.btn-color-16 {
  background-color: #4f2e08;
  color: #ffd0de;
}

.btn-color-17 {
  background-color: #d3ee35;
  color: #005f4d;
}

.btn-color-18 {
  background-color: #551d37;
  color: #df096d;
}

.btn-color-19 {
  background-color: #f56335;
  color: #ffd6ca;
}

.btn-color-20 {
  background-color: #b47f4d;
  color: #6a3402;
}

.btn-color-21 {
  background-color: #9eb08e;
  color: #ffffff;
}

/* Hover styles */
.custom-button:hover {
  background-color: #ffffff;
  border-color: #3498db;
  color: #2c3e50;
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  border-radius: 0%;
}

/* Rotate icon on hover */
.custom-button:hover i {
  color: #2c3e50;
  animation: spinEarth 0.5s ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes spinEarth {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Styles for the button text container */
.button-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Main Heading Style */
.main-heading {
  font-size: 20px;
  font-weight: 400;
  color: inherit;
  margin: 0;
  padding-top: 15px;
  /* align-items: center; */
  /* vertical-align: bottom !important; */
  font-family: "Noto Serif Sinhala", serif;
}

/* Subheading Style */
.sub-heading {
  font-size: 14px;
  color: #ffffff;
  margin: 5px 0 0;
  /* font-family: "Noto Serif Sinhala", serif; */
}

/* Optional: Change subheading color on hover */
.sub-heading:hover {
  color: #011e21 !important;
}

/* Styling for the fa icons */
.icon-color {
  color: #ffffff;
  transition: color 0.4s ease;
  padding-top: 5px;
  /* padding-bottom: 10px; */
  /* vertical-align: top !important; */
  /* vertical-align: top !important; */
}

/* Topic Section Heading Styling */
.section-heading {
  text-align: center;
  margin-top: 30px;
  font-size: 32px;
  font-weight: 600;
  color: #2c3e50;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  background: #f5f5f5;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

h3.section-heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #3498db;
  margin: 10px auto 0;
  border-radius: 5px;
}

/* Hover effect for heading */
h3.section-heading:hover {
  color: #3498db;
  transition: color 0.3s ease;
}

h3.section-heading:hover::after {
  background-color: #2c3e50;
  width: 100px;
  transition: background-color 0.3s ease, width 0.3s ease;
}
