/*
 Theme Name: GeneratePress Child
 Theme URI: https://generatepress.com
 Description: A blank child theme for GeneratePress.
 Author: Muhammad Rashid
 Author URI: https://example.com
 Template: generatepress
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: generatepress-child
*/

/* Add your custom CSS below this line */
/* header style */
@media (max-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 999;
  }
  .hide-on-mobile {
    display: none !important;
  }
}

.site-header {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* menu adjustments */
.inside-navigation .slideout-exit.has-svg-icon {
  position: absolute;
  top: 24px;
  right: 15px;
  margin: 0 !important;
  padding: 0 !important;
  width: auto;
}

#generate-slideout-menu.is-open {
  width: 100% !important;
}

.gp-icon.icon-menu-bars,
.gp-icon.pro-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
}

.gp-icon.icon-menu-bars svg,
.gp-icon.pro-close svg {
  width: 25px;
  height: 25px;
  fill: #333;
}

.gp-icon.icon-menu-bars svg {
  transform: translateY(1px);
}

.menu-toggle,
.menu-bar-items {
  margin: 0 !important;
  padding: 0 !important;
}

span.mobile-menu {
  display: none !important;
}

/* search bar style */
.gb-element-a5a6fc1a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  background: transparent;
}

.gb-element-640819e0 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: transparent;
}

.wp-block-search__input,
.wp-block-search__button {
  margin: 0 !important;
}

.wp-block-search {
  display: flex;
  width: 100%;
  max-width: 400px;
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid var(--base-4);
  transition: all 0.3s ease;
}

.wp-block-search:hover {
  border-color: var(--accent-3);
  box-shadow: 0 4px 10px rgba(59,130,246,0.18);
}

.wp-block-search__input {
  flex: 1;
  padding: 12px 18px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 15px;
  background: #fff;
  color: #333;
  font-family: inherit;
}

.wp-block-search__input::placeholder {
  color: #999;
}

.wp-block-search__button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--accent-3);
  border: none !important;
  outline: none !important;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.wp-block-search__button:hover {
  background: var(--accent-2);
}

.search-icon path {
  fill: #fff;
  transition: fill 0.3s ease;
}

.wp-block-search__button:hover .search-icon path {
  fill: #f4f4f4;
}

.wp-block-search input::-webkit-search-decoration,
.wp-block-search input::-webkit-search-cancel-button,
.wp-block-search input::-webkit-search-results-button,
.wp-block-search input::-webkit-search-results-decoration {
  display: none;
}

.wp-block-search *:focus {
  outline: none !important;
  box-shadow: none !important;
}

.wp-block-buttons {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0;
  width: 100%;
}

.wp-block-button__link.wp-element-button {
  display: inline-block;
  color: #fff;
  padding: 0 1.3rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease-in-out;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
}

.wp-block-button__link.wp-element-button:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(-2px);
}

/* General */
.invisible-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

figure.wp-block-image {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

b,
strong {
  font-weight: 600 !important;
}

h2.wp-block-heading {
  margin-top: 60px;
}

h3.wp-block-heading {
  margin-top: 40px;
}

ol.wp-block-list,
ul.wp-block-list {
  margin-left: 2em;
}

/* footer lists */
.foo-list,
.foo-list li {
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  
}

.foo-list li a {
  color: var(--base-2);
  text-decoration: none;
  transition: color 0.3s ease;
	line-height: 2.2 !important;
}

.foo-list li a:hover {
  color: var(--accent-3);
}

/* back to top */
a.generate-back-to-top {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 30px;
  right: 30px;
  cursor: pointer;
  z-index: 9999;
  text-decoration: none;
  transition: background-color 0.3s ease;
  background-color: var(--accent-3);
  color: #fff;
}

a.generate-back-to-top:hover {
  background-color: var(--accent-2);
}

a.generate-back-to-top .gp-icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

a.generate-back-to-top svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  transform: translateY(-3px);
}

/* styled tables */
figure.wp-block-table {
  width: 100% !important;
  max-width: 100% !important;
  overflow: auto !important;
  margin-bottom: 25px;
}

table.has-fixed-layout {
  white-space: nowrap !important;
  border-collapse: separate !important;
  table-layout: auto !important;
  background-color: transparent;
  border: 1px solid var(--contrast-3);
  overflow: hidden;
  border-radius: 8px; 
  margin-bottom: 12px;
}

table.has-fixed-layout th,
table.has-fixed-layout td {
  padding: 12px 18px;
  background-color: var(--base);
  text-align: left;
  border: none;
  word-wrap: break-word;
}

table.has-fixed-layout th {
  color: #fff;
  background-color: var(--contrast-3);
  box-shadow: none;
  font-weight: 700;
}

table.has-fixed-layout tr:nth-child(even) td {
  background-color: var(--base-2);
}


/* Table of Contents */
h2[id] {
  scroll-margin-top: 60px;
}
.toc-box {
  background: var(--base);
  border-radius: 8px;
  margin: 40px 0;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.toc-details {
  width: 100%;
}
.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid var(--contrast-4);
  transition: background 0.2s;
  background: var(--contrast-2);
}
.toc-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--base);
}
.toc-header::-webkit-details-marker {
  display: none;
}
.toc-header::marker {
  content: none;
}
.toc-header::after {
  content: "−";
  font-size: 25px;
  font-weight: 600;
  color: var(--base-2);
  margin-left: auto;
  transition: transform 0.2s;
}
.toc-details:not([open]) .toc-header::after {
  content: "+";
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 16px 20px 20px;
  counter-reset: toc-counter;
}
.toc-list li {
  margin: 8px 0;
  counter-increment: toc-counter;
  display: flex;
  align-items: flex-start;
}
.toc-list li::before {
  content: counter(toc-counter) ".";
  color: var(--contrast-3);
  font-weight: 600;
  margin-right: 8px;
  flex-shrink: 0;
  text-align: right;
}
.toc-link {
  flex: 1;
  text-decoration: none;
  color: var(--accent) !important;
  border: none !important;
}
.toc-link:hover {
  color: var(--accent) !important;
  background: transparent !important;
  text-decoration: underline !important;
}
@media (max-width: 768px) {
  .toc-header {
    padding: 14px 16px;
  }
  .toc-title {
    font-size: 18px;
  }
  .toc-list {
    padding: 14px 16px 18px;
  }
}

/* Social Share Buttons */
.social-share-container {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.social-share-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--contrast-2);
    position: relative;
    background: var(--base-3);
    border: 2px solid #ccc;
    border-radius: 8px;
    gap: 8px;
    font-weight: 500;
    margin-right: 10px;
}

.social-share-label::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -9px;
    transform: translateY(-50%) rotate(45deg);
    width: 15px;
    height: 15px;
    background: var(--base-3);
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
}

.social-share-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-share-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff !important;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.social-share-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.social-share-btn:hover {
    color: #fff !important;
    transform: scale(1.04);
}

.social-share-btn.facebook { background-color: #1877f2; }
.social-share-btn.facebook:hover { background-color: #1464d2; }

.social-share-btn.whatsapp { background-color: #25d366; }
.social-share-btn.whatsapp:hover { background-color: #1fa855; }

.social-share-btn.twitter { background-color: #000000; }
.social-share-btn.twitter:hover { background-color: #222; }

.social-share-btn.pinterest { background-color: #e60023; }
.social-share-btn.pinterest:hover { background-color: #c3001d; }

/* FAQs */
.rank-math-block {
  margin: 30px 0;
}

.rank-math-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  counter-reset: faq-counter;
}

.rank-math-list-item {
  border-radius: 15px;
  overflow: hidden;
  border-bottom: 1px solid var(--contrast-3);
  counter-increment: faq-counter;
}

.rank-math-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin: 0;
  letter-spacing: -0.03rem;
  padding: 18px 15px;
  font-size: 17px;
  background: var(--base);
  font-weight: 600;
  color: var(--contrast-2);
  position: relative;
}

.rank-math-question::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--base-2);
  color: var(--contrast-2);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 16px;
  flex-shrink: 0;
}

.rank-math-question[aria-expanded="true"]::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--contrast-2);
  color: white;
}

.rank-math-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  background: var(--base-2);
  color: var(--contrast-2);
  font-size: 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.rank-math-answer.open {
  max-height: 1000px;
  padding: 15px;
}

.rank-math-answer p {
  margin: 0;
  padding: 0;
}

@media (max-width: 700px) {
  .rank-math-question {
    font-size: 16px;
  }
  .rank-math-answer {
    font-size: 14px;
  }
}


/* Breadcrumbs */
.breadcrumbs-single-post {
    font-size: 14px;
    line-height: 1.6;
    display: block;
    font-weight: 400;
}

.breadcrumbs-single-post ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline;
}

.breadcrumbs-single-post li {
    display: inline;
    color: var(--contrast-3);
}

.breadcrumbs-single-post li + li::before {
    content: " > ";
    color: var(--contrast-2);
    padding: 0 0.2em;
    font-weight: 500;
}

.breadcrumbs-single-post a {
    color: var(--accent) !important;
    text-decoration: none;
}

.breadcrumbs-single-post a:hover {
    color: var(--accent) !important;
    border-bottom: none;
    text-decoration: underline;
}

.inline-link a {
  color: var(--accent) !important;
  border-bottom: 1px solid var(--accent-3);
  text-decoration: none;
  font-weight: 400;
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.inline-link a:hover {
  color: var(--accent-3) !important;
}