/* default index page */
.default-content {
  max-width: 1024px;
  margin: 30px auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.site-title {
  margin: 0;
}

.page-title {
  font-size: 16px;
}

ul {
  padding: 0;
  margin: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    left: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.entry-content a,
.entry-summary a,
.comment-content a,
.widget a {
    text-decoration: underline;
}

/* button css */
.border {
  border: 1px solid #E5E7EB !important;
}

.button-effect-secondary {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.button-effect-secondary::after {
  position: absolute;
  z-index: -1;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 100px;
  border-radius: 100%;
  filter: blur(30px);
  background: #ffffff !important;
  transform: translateX(-100px);
  transition: 0.3s ease-in-out;
}

.button-effect-secondary:hover::after {
  transform: translateX(-50px);
}

/* Truncate text - external css */

.truncate-description,
.truncate-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* header css */

.menu-toggle {
  font-size: 24px;
  padding: 0px 16px;
  background: #ece881;
}

.menu-toggle:hover {
  background: #ece865 !important;
}

.main-navigation ul {
    /* display: flow; */
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
  /* left: unset;
  right: 0; */
  background: #fff;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
  /* display: block;
  left: unset;
  right: 200px; */
  background: #fff;
}

/* Base styles for the menu */
#primary-menu {
  width: calc(100% - 100%);
}

#primary-menu.open {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  position: fixed;
  top: 0;
  z-index: 999;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-right: 1px solid #ccc;
  height: 100%;
  width: calc(100% - 100px);
  padding: 55px 10px;
  overflow: hidden;
}

/* For larger screens (over 50rem), make sure the menu is always visible */
@media (min-width: 50rem) {
  #primary-menu {
    position: relative;
    display: flex;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    border-right: none;
    visibility: visible;
    transform: none;
    opacity: 1;
  }

  #primary-menu.open {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  #primary-menu li {
    border-bottom: none;
  }
}

/* Mobile menu toggle button */
.menu-toggle {
  display: block;
  cursor: pointer;
}

@media (max-width: 50rem) {
  /* Make the primary menu vertical and hidden initially */
  #primary-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    padding: 1rem;
    overflow-y: auto;
    transition: left 0.3s ease;
    flex-direction: column;
  }

  #primary-menu.open {
    left: 0;
  }

  /* Sub-menus become "accordion style" */
  .main-navigation ul,
  .main-navigation ul ul {
    position: static;
    box-shadow: none;
    background: transparent;
  }

  .main-navigation li:hover > .sub-menu,
  .main-navigation li.focus > .sub-menu {
    display: block;
  }

  .sub-menu {
    padding-left: 1rem;
    display: none;
  }

  .main-navigation li.open > .sub-menu {
    display: block;
  }

  /* Toggle button style */
  .menu-toggle {
    display: inline-block;
    background: #ece881;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border: none;
    font-size: 1.25rem;
  }
}

/* Hide the menu toggle button on larger screens */
@media (min-width: 50rem) {
  .menu-toggle {
    display: none;
  }
}

#masthead {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  /*  */
  position: relative;
}

#site-navigation {
  width: fit-content;
  place-items: end;
}

.site-branding .custom-logo-link .custom-logo {
  max-height: 80px;
  width: auto;
}

.site-branding .site-title a {
  font-size: 35px;
  font-weight: bold;
  white-space: nowrap;
  color: #1f2937;
  text-decoration: none !important;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.nav-menu li {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid #ccc;
}

.nav-menu li::after {
  position: absolute;
  z-index: 1;
  content: "";
  width: 100%;
  margin: 0 auto;
  height: 4px;
  left: 0;
  bottom: 0;
  background-color: #e2df7a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.nav-menu li:hover::after {
  transform: scaleX(1);
}

.nav-menu li a {
  color: #000;
  list-style: none;
  padding: 10px 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
}

/* About Section CSS */

#about {
  background-size: cover;
  background-position: center center;
}

/* qualification section CSS */
.qualification,
.qualification-info {
  position: relative;
  z-index: 1;
  height: fit-content;
}

.qualification::before {
  position: absolute;
  z-index: initial;
  content: "";
  height: 20px;
  width: 20px;
  border-radius: 100%;
  top: 7px;
  left: -10px;
  background: #94a3b8;
}

.qualification::after {
  position: absolute;
  z-index: -11;
  content: "";
  height: calc(100% - 10px);
  width: 1px;
  top: 10px;
  left: 0px;
  background: #8d8d8d;
}
.qualification-info::before {
  position: absolute;
  z-index: -1;
  content: "";
  height: 15px;
  width: 15px;
  top: 0;
  left: -23px;
  background: #8d8d8d;
  border-radius: 100%;
}

.qualification-info-2::before {
  position: absolute;
  z-index: -1;
  content: "";
  height: 1px;
  width: 15px;
  top: 10px;
  left: -15px;
  background: #8d8d8d;
  border-radius: 100%;
}

.qualification-info span,
.qualification-info-2 span {
  background: #ece881;
}

/* Skill CSS */

.progress-bar {
  transition: width 2s ease-out; /* Smooth transition for width change */
}

.progress-text {
  transition: all 2s ease-out; /* Smooth transition for percentage text */
}

/* Portfolio Section CSS */

.active {
  background: #ece881;
}

.portfolio-item {
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image-linked-buttons {
  opacity: 1;
  visibility: visible;
}

.portfolio-item-buttons a {
  /* background: #ECE881; */
  background: none;
  color: #ece881;
  font-size: 20px;
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-wrap: nowrap;
}

.portfolio-post-link {
  font-size: 16px !important;
  text-wrap: nowrap !important;
  background: #ece881 !important;
  height: 30px !important;
  width: 100% !important;
  color: #000 !important;
  padding: 5px 10px !important;
}

/* Footer Widget Styles */
.footer-widget-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-widget-area .widget {
  width: 100%;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .footer-widget-area .widget {
    width: 48%;
  }
}

@media (min-width: 1024px) {
  .footer-widget-area .widget {
    width: 23%;
  }
}

/* Sidebar Widget CSS */

#secondary {
  height: fit-content;
}

#secondary.widget-area {
  border: none;
}

#secondary .widget {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#secondary .widget-title,
#secondary .wp-block-heading,
#secondary .widget form label {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #ece881;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

#secondary .widget a {
  color: #0ea1e6;
  text-decoration: underline;
  font-weight: 400;
  transition: color 0.1s ease;
}

#secondary .widget a:hover {
  text-decoration: underline;
}

#secondary .widget ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#secondary .widget ul li {
  margin-bottom: 10px;
}

#secondary .widget ul li:last-child {
  margin-bottom: 0;
}

#secondary .widget .search-form {
  display: flex;
  flex: auto;
  flex-wrap: nowrap;
  max-width: 100%;
}

#secondary .widget .search-form input[type="search"] {
  border: none;
  padding: 8px 12px;
  flex: 1;
  outline: none;
}

#secondary .widget .search-form button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#secondary .widget .search-form button:hover {
  background-color: #1e3a8a;
}

#secondary .widget .tagcloud a {
  display: inline-block;
  margin: 4px;
  padding: 6px 12px;
  font-size: 14px;
  background-color: #e0f2fe;
  color: #0284c7;
  text-decoration: underline;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#secondary .widget .tagcloud a:hover {
  background-color: #0284c7;
  color: #ffffff;
}

.wp-block-search__inside-wrapper input[type="search"] {
  padding: 5px 10px !important;
  border-radius: 0px !important;
}

.wp-block-search__inside-wrapper input[type="search"]:focus {
  outline: none !important;
}

.wp-block-search__inside-wrapper button {
  padding: 5px 10px !important;
  background: #ece881 !important;
  border: 1px solid #ece881 !important;
  border-radius: 0px !important;
}

.wp-block-search__inside-wrapper button:hover {
  padding: 5px 10px !important;
  background: #ece865 !important;
}

.wp-block-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

input.search-field {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 0px !important;
}

input.search-field:focus {
  outline: none !important;
}

input.search-submit {
  padding: 5px 10px !important;
  background: #ece881 !important;
  border: 1px solid #ece881 !important;
  border-radius: 0px !important;
}

input.search-submit:hover {
  background: #ece865 !important;
  border: 1px solid #ece865 !important;
}

/* comment css */

#comment {
  padding: 10px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.children {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-body {
  position: relative;
}

#reply-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.reply-icon {
  position: absolute;
  left: -50px;
  top: 15px;
}

#submit {
  background: #ece881;
}

.comments-title {
  margin: 30px 0 10px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #555;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
  margin-bottom: 1rem;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input,
.comment-form-comment textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.comment-form-cookies-consent input {
  margin-right: 0.5rem;
}

.comment-submit-button {
  cursor: pointer;
  transition: background-color 0.3s;
}

.comment-submit-button:hover {
  background-color: #004a99;
}

.wp-block-latest-comments__comment {
  margin: 0 !important;
}

/*
-- Start Banner Background Animation 
*/

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: #676940;
  animation: animate 25s linear infinite;
  bottom: -150px;
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

/* Preloader CSS */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.loader {
  font-weight: bold;
  font-family: monospace;
  font-size: 30px;
  letter-spacing: 10ch;
  width: 10ch;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: calc(-1 * 10ch) 0, calc(-2 * 10ch) 0, calc(-3 * 10ch) 0,
    calc(-4 * 10ch) 0, calc(-5 * 10ch) 0, calc(-6 * 10ch) 0, calc(-7 * 10ch) 0,
    calc(-8 * 10ch) 0, calc(-9 * 10ch) 0;
  animation: l16 2s infinite;
}

.loader:before {
  content: "Loading...";
}

@keyframes l16 {
  20% {
    text-shadow: calc(-1 * 10ch) 0, calc(-2 * 10ch) 0 red, calc(-3 * 10ch) 0,
      calc(-4 * 10ch) 0 #ffa516, calc(-5 * 10ch) 0 #63fff4, calc(-6 * 10ch) 0,
      calc(-7 * 10ch) 0, calc(-8 * 10ch) 0 green, calc(-9 * 10ch) 0;
  }
  40% {
    text-shadow: calc(-1 * 10ch) 0, calc(-2 * 10ch) 0 red,
      calc(-3 * 10ch) 0 #e945e9, calc(-4 * 10ch) 0, calc(-5 * 10ch) 0 green,
      calc(-6 * 10ch) 0 orange, calc(-7 * 10ch) 0, calc(-8 * 10ch) 0 green,
      calc(-9 * 10ch) 0;
  }
  60% {
    text-shadow: calc(-1 * 10ch) 0 lightblue, calc(-2 * 10ch) 0,
      calc(-3 * 10ch) 0 #e945e9, calc(-4 * 10ch) 0, calc(-5 * 10ch) 0 green,
      calc(-6 * 10ch) 0, calc(-7 * 10ch) 0 yellow, calc(-8 * 10ch) 0 #ffa516,
      calc(-9 * 10ch) 0 red;
  }
  80% {
    text-shadow: calc(-1 * 10ch) 0 lightblue, calc(-2 * 10ch) 0 yellow,
      calc(-3 * 10ch) 0 #63fff4, calc(-4 * 10ch) 0 #ffa516,
      calc(-5 * 10ch) 0 red, calc(-6 * 10ch) 0, calc(-7 * 10ch) 0 grey,
      calc(-8 * 10ch) 0 #63fff4, calc(-9 * 10ch) 0;
  }
}

/*  */

/* Custom grid class */
.cl-grid-2 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
.cl-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
.cl-grid-4 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

/* For small screens and above (sm) */
@media (min-width: 640px) {
  .cl-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cl-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cl-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* For large screens and above (lg) */
@media (min-width: 1024px) {
  .cl-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cl-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Contact Form 7 CSS */
/* Style the input fields */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 5px 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}

/* Change background color and border when the field is focused */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  border-color: #66afe9;
  outline: none;
  box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
}

.wpcf7-form-control-wrap textarea {
  height: 6rem;
}

/* Style the submit button */
.wpcf7 input[type="submit"] {
  background-color: #ece881;
  color: #000;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

/* Hover effect for the submit button */
.wpcf7 input[type="submit"]:hover {
  background-color: #e0dc69;
}

/* Style the error messages */
.wpcf7 .wpcf7-not-valid-tip {
  color: red;
  font-size: 14px;
}

.wpcf7-response-output {
  margin-top: 0px !important;
}

.wpcf7-mail-sent-ok {
  background-color: #dff0d8;
  border: 1px solid #3c763d;
  color: #3c763d;
  padding: 10px;
  margin-bottom: 20px;
}

.wpcf7-mail-sent-ng {
  background-color: #f2dede;
  border: 1px solid #a94442;
  color: #a94442;
  padding: 10px;
  margin-bottom: 20px;
}

