/* Enhanced Footer Styles with Language-Independent Icons */

/* Main Footer Styles */
.footer-main {
  background-color: #4a9d35;
  color: #ffffff;
}

/* Top Section */
#footer-top {
  padding: 40px 0 20px;
}

.footer-top-row {
  position: relative;
}

/* Bootstrap 3 column enhancement */
.footer-top-row .col-md-3 {
  padding-bottom: 20px;
}

/* Section Titles */
.footer-main .block-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-main .block-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 50px;
  background-color: rgba(255, 255, 255, 0.5);
}

/* Menu Links */
.footer-main .menu.nav {
  margin: 0;
  padding: 0;
}

.footer-main .menu.nav li {
  list-style: none;
  margin-bottom: 10px;
}

.footer-main .menu.nav li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0;
  display: inline-block;
}

.footer-main .menu.nav li a:hover,
.footer-main .menu.nav li a:focus {
  color: #ffffff;
  text-decoration: underline;
  background: transparent;
}

/* Social Media Icons - Language Independent */
.afdbfollowsocialmedia-urls {
  display: block;
  padding: 0;
  margin: 15px 0;
  overflow: hidden;
}

.afdbfollowsocialmedia-urls li {
  list-style: none;
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
}

/* Hide the original SVG icons */
.afdbfollowsocialmedia-urls li a svg {
  display: none;
}

/* Language-independent approach using attribute selectors */
.afdbfollowsocialmedia-urls li a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  transition: all 0.3s ease;
  opacity: 0.9;
  font-size: 0; /* Hide the text */
}

.afdbfollowsocialmedia-urls li a:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Add icons using CSS before pseudo-element */
.afdbfollowsocialmedia-urls li a:before {
  font-family: "FontAwesome";
  content: "\f0ac"; /* Default globe icon */
  font-size: 18px;
  color: #fff;
}

/* Target each social media icon using attribute selectors */
.afdbfollowsocialmedia-urls li a[title="Facebook"]:before,
.afdbfollowsocialmedia-urls li a[href*="facebook.com"]:before {
  content: "\f39e";
}

.afdbfollowsocialmedia-urls li a[title="Linkedin"]:before,
.afdbfollowsocialmedia-urls li a[href*="linkedin.com"]:before {
  content: "\f0e1";
}

/* Correct X Twitter icon using FontAwesome 6 */
.afdbfollowsocialmedia-urls li a[title="X"]:before,
.afdbfollowsocialmedia-urls li a[href*="x.com"]:before {
  content: "\e61b";  /* fa-x-twitter code */
}

.afdbfollowsocialmedia-urls li a[title="Instagram"]:before,
.afdbfollowsocialmedia-urls li a[href*="instagram.com"]:before {
  content: "\f16d";
}

.afdbfollowsocialmedia-urls li a[title="Vimeo"]:before,
.afdbfollowsocialmedia-urls li a[href*="vimeo.com"]:before {
  content: "\f27d";
}

.afdbfollowsocialmedia-urls li a[title="YouTube"]:before,
.afdbfollowsocialmedia-urls li a[href*="youtube.com"]:before {
  content: "\f167";
}

.afdbfollowsocialmedia-urls li a[title="Flickr"]:before,
.afdbfollowsocialmedia-urls li a[href*="flickr.com"]:before {
  content: "\f16e";
}

.afdbfollowsocialmedia-urls li a[title*="RSS"]:before,
.afdbfollowsocialmedia-urls li a[href*="rss-feeds"]:before {
  content: "\f09e";
}

.afdbfollowsocialmedia-urls li a[title*="Email"]:before,
.afdbfollowsocialmedia-urls li a[href*="contacts"]:before {
  content: "\f0e0";
}



#block-block-57 h2.block-title {
  margin-top: 10px;
}

#block-menu-menu-footer-column-four-menu .col-md-6 {
  padding: 0 10px 0 0;
}

/* Bottom Footer */
#footer-bottom {
  background-color: rgba(0, 0, 0, 0.15);
  padding: 20px 0;
}

#footer-bottom .menu.nav {
  text-align: center;
  margin-bottom: 15px;
}

#footer-bottom .menu.nav li {
  display: inline-block;
  margin: 0 10px 5px 0;
  position: relative;
}

#footer-bottom .menu.nav li:not(:last-child):after {
  content: '|';
  position: absolute;
  right: -7px;
  top: 2px;
  color: rgba(255, 255, 255, 0.5);
}

#footer-bottom .menu.nav li a {
  color: rgba(255, 255, 255, 0.8);
  padding: 2px 0;
  background: transparent;
}

#footer-bottom .menu.nav li a:hover,
#footer-bottom .menu.nav li a:focus {
  color: #ffffff;
  text-decoration: underline;
  background: transparent;
}

#block-block-5 {
  text-align: center;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
}

#block-block-5 a {
  color: #ffffff;
  text-decoration: none;
}

#block-block-5 a:hover {
  text-decoration: underline;
}

/* Hide "no body" text */
p[style="display: none"] {
  display: none !important;
}

/* Column dividers for larger screens */
@media (min-width: 992px) {
  .footer-top-row .col-md-3 {
    position: relative;
  }
  
  .footer-top-row .col-md-3:not(:last-child):after {
    content: '';
    position: absolute;
    top: 15%;
    right: 0;
    height: 70%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
  }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  #footer-top {
    padding: 30px 15px;
  }
  
  .footer-top-row .col-md-3 {
    margin-bottom: 25px;
  }
  
  #footer-bottom .menu.nav li {
    margin: 5px 10px 5px 0;
  }
}

@media (max-width: 767px) {
  #footer-bottom .menu.nav li:after {
    display: none;
  }
  
  .afdbfollowsocialmedia-urls {
    text-align: center;
  }
  
  .afdbfollowsocialmedia-urls li {
    float: none;
    display: inline-block;
  }
  
  #block-menu-menu-footer-column-four-menu .col-md-6 {
    margin-bottom: 15px;
  }
}

/* Container adjustments */
.footer-main .container-fluid {
  padding-left: 30px;
  padding-right: 30px;
}

/* RTL (Right-to-Left) language support */
html[dir="rtl"] .footer-main .block-title:after {
  right: 0;
  left: auto;
}

html[dir="rtl"] .afdbfollowsocialmedia-urls li {
  float: right;
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .footer-top-row .col-md-3:not(:last-child):after {
  left: 0;
  right: auto;
}

html[dir="rtl"] #footer-bottom .menu.nav li:not(:last-child):after {
  left: -7px;
  right: auto;
}
.footer-top-row li.leaf a {font-size:1em;}
.footer-top-row li.leaf a:hover {font-size:1em;}
