:root {
  --theme-primary: #4a2c5c;
  --theme-secondary: #6a3fa0;
  --theme-bg: #f5f5f5;
  --theme-text-light: #ffffff;
  --theme-text-dark: #4a2c5c;
  /* --theme-text-dark: #212529; */
  --theme-btn-active: #2e8b57;
  --theme-shadow: rgba(0, 0, 0, 0.3);
}

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

.row {
  display: flex;
  align-items: center;
}

.col2 {
  border-left: 2px solid var(--theme-primary);
}

.col img {
  padding: 10px;
}

body {
  background-color: var(--theme-bg);
  font-family: "Poppins", sans-serif;
  padding-top: 6rem;
}

/* Top Header */
.top-banner {
  background: var(--theme-primary);
  padding: 25px 0 10px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navmenus {
  margin-left: auto;
}

.top-banner h6 {
  color: var(--theme-text-light);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.top-banner span {
  font-weight: 500;
  color: var(--theme-text-light);
  font-size: 0.9rem;
  opacity: 0.9;
  letter-spacing: 0.4px;
}

/* Navbar */

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.navbar-nav .nav-link {
  position: relative;
  padding: 0.75rem 1rem;
  color: var(--theme-text-light);
  transition: color 0.25s ease-in-out;
  white-space: nowrap;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 15%;
  bottom: 6px;
  width: 70%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease-in-out;
}

/* hover effect */
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  transform: scaleX(1);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 30px 0 10px 0;
  margin-top: -83px;
}

.heading {
  margin-left: 1rem;
}

/* Hero image */
.hero_img {
  max-width: 100%;
  height: auto;
}

/* Quote Section */

.quote-box {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  font-weight: 500;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--theme-text-dark);
  font-style: italic;
}

/* Footer */
footer {
  background: var(--theme-primary);
  padding: 25px;
  text-align: center;
  color: var(--theme-text-light);
  margin-top: 20px;
}

main {
  line-height: 3;
}

section {
  margin-bottom: 30px;
  box-shadow: 0 6px 12px var(--theme-shadow);
  margin-left: 5%;
  margin-right: 5%;
  border-radius: 20px;
  scroll-margin-top: 130px;
  scroll-behavior: smooth;
}

section h5 {
  letter-spacing: 2px;
}

.guideline_content table {
  max-width: 800px;
}

.guideline_content table thead th {
  background-color: var(--theme-secondary);
  color: var(--theme-text-light);
  font-weight: 500;
  /* width: 0; */
}

.bg-card {
  background-color: var(--theme-bg);
}

.contact_card {
  max-width: 480px;
  background-color: var(--theme-bg);
  border: none;
  font-weight: 500;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

.header h3,
.header h4 {
  color: var(--theme-text-light);
}

.pdf_button {
  text-decoration: none;
  background-color: var(--theme-secondary);
  color: var(--theme-text-light);
  padding-left: 4px;
  padding-right: 4px;
  border-radius: 3px;
  font-size: 15px;
}

.pdf_button:active {
  background-color: var(--theme-btn-active);
  color: var(--theme-text-light);
  box-shadow: 0 6px 12px var(--theme-shadow);
}

a {
  text-decoration: none;
}

.committee_bg table tbody tr td {
  background-color: var(--theme-bg);
}

.committee_image {
  width: 180px;
  height: 200px;
  border: 2px solid var(--theme-secondary);
  border-radius: 10px;
}

.pop-image {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.pop-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px var(--theme-shadow);
}

.committee_row {
  text-align: center;
  width: 30%;
  margin-bottom: 50px;
}

.committee_name {
  text-align: center;
  font-size: small;
  font-weight: 600;
  padding-bottom: 49px;
  padding-top: 12px;
  line-height: 2;
  margin-top: 10px;
}

th,
tr,
td {
  border: none;
}

@media (min-width: 200px) {
  .hero_img {
    max-width: 100%;
  }

  .quote-box {
    text-align: center;
    height: auto;
    max-width: 100%;
  }
}

@media (min-width: 810px) {
  .hero_img {
    max-width: 100%;
  }

  .quote-box {
    text-align: justify;
    height: auto;
    max-width: 100%;
  }
}

.color-box {
  width: 20px;
  height: 20px;
  margin: 5px;
  padding: 7px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid #fff;
}

.color-box:hover {
  border: 2px solid #000;
}

.dropdown_icon {
  max-width: 28px;
  height: auto;
  /* background-color: var(--theme-text-light); */
}

.theme-dropdown {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* 5 columns */
  gap: 0px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.box-1 {
  background: #4a2c5c;
}
.box-2 {
  background: #708238;
}
.box-3 {
  background: #f07074ff;
}
.box-4 {
  background: #b4bdee;
}
.box-5 {
  background: #30769c;
}
.box-6 {
  background: #349b77;
}
.box-7 {
  background: #dec894;
}
.box-8 {
  background: #edc561;
}
.box-9 {
  background: #800000;
}
.box-10 {
  background: #000080;
}

/* Prevent toggler jump */
.navbar-toggler {
  white-space: nowrap;
}

/* Keep nav-wrapper stable */
.nav-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  /* IMPORTANT: no wrap on desktop */
  flex-grow: 1;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .nav-wrapper {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .navbar {
    width: 98%;
  }
}

/* Desktop: keep dropdown close to nav links */
@media (min-width: 992px) {
  .main-navbar {
    flex-grow: 0;
    /* STOP pushing dropdown away */
  }

  .dropdown {
    margin-left: 8px;
    /* small, intentional spacing */
  }
}

/* Prevent nav jump on language switch */
.main-navbar {
  width: 92%;
}

.main-navbar .navbar-collapse {
  justify-content: center !important;
}

.navbar-nav .nav-link {
  white-space: nowrap;
}

.subheading span {
  font-weight: 800;
}

/* Hamburger icon */
.navbar-toggler-icon {
  filter: none !important;
  background-image: none !important;
}

.navbar-toggler-icon::before {
  content: "";
  display: block;
  width: 24px;
  height: 18px;
  background:
    linear-gradient(var(--theme-text-light), var(--theme-text-light)) 0 0/100%
      2px no-repeat,
    linear-gradient(var(--theme-text-light), var(--theme-text-light)) 0 8px/100%
      2px no-repeat,
    linear-gradient(var(--theme-text-light), var(--theme-text-light)) 0
      16px/100% 2px no-repeat;
}
