/*
Theme Name: Idea Dream One
Theme URI: https://ideadream.one/
Author: Idea Dream One
Description: This is free IELTS tests website. You can practice IELTS reading, listening, speaking and writing tests here. You can also find IELTS tips and tricks here.
*/

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.site-header {
  padding: 40px;
  background-color: white;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10px ;
}



.site-branding {
  display: flex;
  align-items: center;
}

.site-branding img {
  max-height: 40px;
  width: auto;
}

.site-title {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.menu li {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #7d53de;
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 5px;
  z-index: 1000;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
  .site-header {
    padding: 15px 20px;
  }

  .burger-menu {
    display: flex;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: left 0.3s ease;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .main-navigation.active {
    left: 0;
  }

  .menu {
    flex-direction: column;
    width: 100%;
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }

  .burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .overlay.active {
    display: block;
  }

  .footer-top {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .bottom-menu {
    padding: 10px !important;
  }

  .line {
    margin: 0 !important;
  }

  .bottom-menu .menu ul {
    flex-direction: column;
    gap: 10px;
}

@media screen and (max-width: 480px) {
  .site-header {
    padding: 10px 15px;
  }

  .site-branding img {
    max-height: 30px;
  }

  .site-title {
    font-size: 20px;
  }
}
