h4.card-title{
  font-family: 'Lobster', cursive;
  font-size: 29px;
  line-height: 1.2em;
  margin: 0;
  color: #548c41;
  text-align: center;
  position: relative;
  left: -4px;
  text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
}

h1 {
  background-color: #548c41;
  padding: 10px;
  font-family: Lobster !important;
  font-size:29px;
  line-height:1.2em;
  margin:0 0 0 0;
  /*color:#707070;*/
  color:#fff;
  text-align:center;
  left:-4px;
  text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}

.custom-navbar {
  background-color: #548c41 !important;
}

body {
  padding-top: 70px; /* Adjust this based on your navbar height */
}

.card-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

#posts img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: 10px;
}

.responsive-iframe {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Top icon strip footer */
.footer-icons {
  background-image: url("../img/footer_bg_tail.gif");
  background-repeat: repeat-x;
  overflow-x: auto;
  white-space: nowrap;
  padding: 5px 0;
  margin: 0;
  position: fixed;
  bottom: 30px; /* exactly height of .footer-bottom */
  width: 100%;
  z-index: 1029;
  border-top: none; /* remove extra spacing */
}

.footer-icons .icon-strip a {
  display: inline-block;
  margin: 0 10px;
}

.footer-icons .icon-strip img {
  height: 60px;
  
}

/* Green bottom footer */
.footer-bottom {
  background-color: #dedede; /* changed from #fff to your green */
  color: #666;
  z-index: 1030;
  height: 30px;
  font-weight: normal;
  font-size: 12px;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);

  margin: 0;     /* prevent spacing above */
  padding: 0;    /* make sure no extra space is added */
  line-height: 30px; /* vertically center the text */
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* Prevent content overlap */
body {
  padding-bottom: 100px; /* ensures space for both footers */
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  line-height: 1.2;
}

.brand-text {
  display: inline-block;
}

.brand-line1 {
  font-family: 'Lobster', cursive;
  display: block;
  font-size: 1.5rem;
  text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.3);
}

.brand-line2 {
  font-family: 'Lobster', cursive;
  display: block;
  font-size: 1.1rem;
  text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.3);
}

.egymi {
  font-family: "Myriad Pro", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: normal;
  text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.3);
}


.navbar-nav .nav-link {
  font-family: 'Roboto Condensed', sans-serif !important;
  /* font-family: 'Roboto Condensed', sans-serif; /* Apply Roboto Condensed font */
  color: #ffffff; /* default text color */
  /* background-color: #5eb748;  or a specific background if needed */
  text-transform: uppercase;
  font-size: 1.2rem;
  text-shadow: 3px 3px 2px rgba(150, 150, 150, 0.4);
  border-radius: 12px;
  padding-left: 10px;
  margin-right: 10px;
 /* margin-bottom should be zero by default */
  margin-bottom: 0; 
}

.navbar-nav a.menu-item-5 {
  color: #005faa !important;
}
/* When the screen width is below 1024px (Bootstrap's default for 'sm' breakpoint) */
@media (max-width: 1200px) {
  .navbar-nav .nav-link {
    margin-bottom: 10px; /* Only on small screens (hamburger menu is visible) */
  }
  .dropdown-menu {
     margin-bottom: 10px; /* Only on small screens (hamburger menu is visible) */
  }
}



.menu-item-0 {
  background-color: #5eb748;
  font-family: 'Roboto Condensed', sans-serif;
}

.menu-item-1 {
  background-color: #fba103;
}

.menu-item-2 {
  background-color: #b53434;
}

.menu-item-3 {
  background-color: #57cbe0;
}

.menu-item-4 {
  background-color: #5eb748;
}

.menu-item-5 {
  background-color: #ffffff;
}

.menu-item-5::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
  background-image: url('https://www.barczi-debr.edu.hu/wp-content/themes/greenbulbs/images/palyazatok.png'); /* Use background-image instead */
  background-size: contain;
  background-repeat: no-repeat;
}


@media (max-width: 991.98px) {
  .dropdown-menu {
    max-height: 60vh; /* Adjust this height as needed */
    overflow-y: auto;
    overflow-x: hidden;
    position: static !important; /* Helps with proper layout on mobile */
  }

  .dropdown-menu.show {
    display: block;
  }

  /* Optional: prevent body from scrolling while dropdown is open */
  body.dropdown-open {
    overflow: hidden;
  }
}

