@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Poppins:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@100;900&family=Noto+Serif+Bengali:wght@100;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Galada&display=swap");
:root {
  --background: #f5f5f5;
  --color-primary: #1e90ff;
  --text-primary: #004d33;
  --text-secondary: #1c3d5a;
  --accent-orange: #ff6600;
  --accent-yellow: #ffcc00;
  --color-success: #39d353;
  --color-black: #0e1111;
  --page-title-size: calc(3vw + 2rem);
}

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

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--background);
  color: var(--color-text-dark);
  padding-bottom: 50px;
}

/* Applying font styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

body.bn {
  font-family: "Noto Serif Bengali", serif;
  font-weight: 500;
  font-size: 1.3rem;
}

body.bn h1,
body.bn h2,
body.bn h3,
body.bn h4,
body.bn h5,
body.bn h6 {
  font-family: "Galada", cursive;
  font-weight: 800;
  font-style: normal;
}
/* common style  */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
a {
  cursor: pointer;
}
/* Page title style */
.page-title {
  position: relative;
  font-size: var(--page-title-size);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin: auto;
  margin-bottom: 40px;
  width: fit-content;
  white-space: nowrap;
  padding: 5px 11px 3px 11px;
}
.page-title:before,
.page-title:after {
  background-color: var(--color-primary);
  position: absolute;
  content: "";
  height: 7px;
  width: calc(3 * var(--page-title-size));
}
.bn {
  .page-title:before,
  .page-title:after {
    width: calc(2 * var(--page-title-size));
  }
}
.page-title:before {
  left: -5px;
  bottom: 0;
}
.page-title:after {
  right: -5px;
  top: 0;
}
.page-title span {
  position: absolute;
  rotate: -90deg;
  left: -20px;
  bottom: 30%;
  font-size: large;
}
/* rest  */
.compliment {
  position: relative;
  padding: 10px;
  text-align: center;
  margin: auto;
  font-size: 1.5rem;
  width: fit-content;
}
.compliment::before,
.compliment::after {
  position: absolute;
  content: "";
  width: 50px;
  height: 50px;
  border: 2px solid green;
  top: 10%;
}
.compliment::before {
  border-right: none;
  left: -5px;
}
.compliment::after {
  border-left: none;
  right: -5px;
}
hr {
  border: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--accent-orange)
  ); /* Gradient effect */
  margin: 30px 1%; /* Spacing around the line */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow for subtle 3D effect */
}
/* Navigation and Header */
header > nav {
  width: 100%;
  height: 65px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

/* Language buttons */
.language-button {
  padding: 12px 30px;
  margin: 15px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: var(--color-primary);
  color: #fff;
  transition: background-color 0.3s ease;
  outline: none;
}

.language-button:hover {
  background-color: var(--color-success);
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding-left: 20px;
  background-color: var(--color-primary);
}

.logo {
  cursor: pointer;
}
.logo img {
  height: 50px;
  background-color: var(--background);
  border-radius: 5px;
}

/* Large screen menu items */
.menu-items {
  display: flex;
  list-style: none;
  gap: 20px;
  padding: 0 10px;
  background-color: var(--color-primary);
}

.menu-items li a {
  text-decoration: none;
  padding: 0 5px;
  color: var(--background);
  transition: background-color 0.3s, color 0.3s;
}

.menu-items li a:hover,
.menu-items li a.active {
  text-decoration: 4px underline var(--accent-orange);
  color: var(--background);
  border-radius: 5px;
}
.more {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 15px;
  right: 0;
  list-style: none;
  padding: 10px;
  border-radius: 5px;
  background-color: var(--color-primary);
  width: max-content;
}

.submenu li {
  padding: 5px 0;
}

.submenu li a {
  color: var(--color-text-dark);
  transition: background-color 0.3s, color 0.3s;
}

.submenu li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent); /* Accent color on hover */
  color: var(--color-text-dark); /* White text on hover */
}

/* Ensure submenu stays visible */
.more:hover .submenu {
  display: block;
}
.hamburger-wrapper {
  display: none;
  flex-direction: row;
  align-items: center;
  margin-right: 10px;
}
.hamburger {
  cursor: pointer;
}
.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--background); /* Primary color for hamburger bars */
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Hide checkbox by default */
input[type="checkbox"] {
  display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .logo {
    flex: 1;
  }

  .menu-items {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    width: fit-content;
    height: fit-content;
    transition: left 0.3s ease-in-out;
    margin-top: 60px;
    z-index: 1;
    border-left: none; /* Mobile menu background color based on theme */
  }
  .submenu {
    left: 0;
  }
  .menu-items li {
    margin: 20px 0;
  }

  .menu-items li a {
    padding: 20px;
  }

  .hamburger-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }

  input[type="checkbox"]:checked + .menu-items {
    left: 0;
  }

  input[type="checkbox"]:checked
    ~ .hamburger-wrapper
    .hamburger
    .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  input[type="checkbox"]:checked
    ~ .hamburger-wrapper
    .hamburger
    .bar:nth-child(2) {
    opacity: 0;
  }

  input[type="checkbox"]:checked
    ~ .hamburger-wrapper
    .hamburger
    .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
select#language-selector {
  border: 0;
  outline: 0;
  border-radius: 0.25em;
  box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: fixed;
  top: 61px;
  left: 20px;
  z-index: 999;
}
.light-info-text {
  color: var(--text-secondary);
  opacity: 0.5;
  font-size: 0.75rem;
}
.mfc-footer {
  padding: 0 30px;
}
.mfc-footer a {
  text-decoration: none;
  color: var(--text-primary);
}
.mfc-footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-cta > div {
  padding: 0 10px;
}

.footer-cta div > h4 {
  color: var(--color-primary);
  width: fit-content;
  font-size: calc(1rem + 1vw);
  text-decoration: underline 5px var(--accent-orange);
}
.footer-cta div a,
.footer-cta div h6 {
  padding: 10px 0;
  font-size: calc(0.5rem + 1vw);
  color: var(--color-primary);
}
body.bn .footer-cta > div:nth-child(2) a {
  font-size: calc(1.2rem + 1vw);
  font-weight: 800;
}

.brand-logo {
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 10px 0;
}
.footer-logo {
  height: 40px;
}
.brand-div h6 {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 10px 0;
}
.brand-div > .social-link > a > img {
  width: 40px;
  padding: 0 10px;
}
.footer-widget {
  padding: 15px 0;
}
.footer-widget ul {
  list-style: none;
}
.footer-widget ul li a {
  color: var(--accent-orange);
  cursor: pointer;
}
.made-by {
  justify-content: flex-end !important;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.made-by a {
  text-decoration: underline dotted 4px var(--accent-orange);
}
.love-symbol {
  color: var(--accent-orange);
  font-size: 1rem;
}
.copyright-area {
  width: 100%;
  justify-content: center !important;
  font-size: calc(0.5rem + 1vw);
  background-color: var(--color-primary);
  position: absolute;
  left: 0;
  right: 0;
  padding: 10px 0;
}
main {
  margin-top: 75px !important;
  min-height: calc(100vh - 165px);
}
/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  background-color: var(--color-lgModal-bg);
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal Content */
.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 90%;
  max-width: 500px;
}
.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
}

.close:hover {
  color: var(--color-accent);
}
.modal-content {
  position: relative;
}
