/* isulnara.com customizer overrides (from live site + Breek custom-styles.php) */

/* WP/live uses border-box globally — keeps .grid-container at 1200px incl. padding */
html {
  box-sizing: border-box;
  min-height: 100%;
  background: none;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Live: body #F9F6F6 + fixed gradient via ::before */
body {
  background-color: #F9F6F6 !important;
  background-image: none !important;
}

body::before {
  content: "" !important;
  display: block !important;
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: linear-gradient(to right bottom, #6d327c, #485DA6, #00a1ba, #01b18e, #32b37b) !important;
}

/* Header is transparent over the same gradient — spacing matches isulnara customizer */
#header.minimalist {
  background: transparent !important;
  height: 127px;
  min-height: 127px;
}

#header .logo a,
#header a.sticky-logo,
#header nav ul.menu > li > a {
  color: #ffffff !important;
}

/* Breek default: 50px top; live site: border flush under menu (margin-top: 0) */
#header .menu-wrapper {
  padding: 50px 0 0 !important;
}

#header div.border {
  margin-top: 0 !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

#header.minimalist.is-sticky .menu-wrapper,
#header.is-sticky .menu-wrapper {
  background: linear-gradient(to right, #6d327c, #485DA6, #00a1ba, #01b18e, #32b37b) !important;
}

/* AOS without WP JS — show content immediately then enhance */
[data-aos] {
  opacity: 1;
}

/* Loop featured image (Breek .fullimage.cover) */
.articles article a.thumb {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  height: 200px !important;
  border-radius: 15px 15px 0 0;
}

.articles article a.thumb .fullimage.cover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100% !important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: block;
}

.articles article .post-format-wrapper {
  position: relative;
  z-index: 2;
  margin: -20px -20px 0;
  margin-bottom: 20px;
}

.articles article .tags.absolute {
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10;
  text-align: center;
}

.articles article .author-meta {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  text-align: left !important;
}

.articles article .author-image.cover {
  background-size: cover;
  background-position: center;
}

/* Footer widgets — float on page gradient (no panel box; matches isulnara.com) */
#footer .widgets {
  display: block !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 50px 0 0 !important;
  margin: 0 !important;
  color: #fff;
  box-shadow: none !important;
}

#footer .widgets .default-sidebar {
  display: flex !important;
  flex-flow: row wrap;
}

#footer .avatar .fullimage.cover {
  display: block;
  width: 100%;
  height: 100% !important;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}

/* About me: vertically center name/tagline next to avatar (social icons removed) */
#footer .widget_epcl_about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#footer .widget_epcl_about > .widget-title {
  flex: 0 0 100%;
  width: 100%;
}

#footer .widget_epcl_about > .avatar {
  float: none;
  flex: 0 0 90px;
  width: 90px !important;
  height: 90px !important;
  aspect-ratio: 1 / 1;
  margin-right: 20px;
}

#footer .widget_epcl_about > .avatar > a.thumb {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
}

#footer .widget_epcl_about > .avatar .fullimage.cover {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100% !important;
  border-radius: 50%;
}

#footer .widget_epcl_about > .info {
  float: none;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#footer .widget_epcl_about > .info .founder {
  margin-bottom: 0;
}

#footer .widget_epcl_about > .clear {
  display: none;
}

#footer .tagcloud a,
#footer .widget_tag_cloud a {
  display: inline-block !important;
  background-color: #E84E89 !important;
  color: #fff !important;
  border-radius: 25px !important;
  padding: 4px 18px !important;
  margin: 0 4px 8px 0 !important;
  font-size: 13px !important;
  line-height: 1.6;
}

/* Hide site title logo in footer (live site has it disabled) */
#footer > .logo {
  display: none;
}

/* Sidebar search */
#sidebar .widget_search {
  padding: 18px !important;
}

#sidebar .search-box {
  display: flex;
  background: #f4f4f4;
  border-radius: 25px;
  overflow: hidden;
}

#sidebar .search-field {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  outline: none;
  font-family: "Poppins", sans-serif;
}

#sidebar .search-submit {
  border: 0;
  background: transparent;
  padding: 0 14px;
  color: #E84E89;
  cursor: pointer;
}

#sidebar .widgets-list-layout {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidebar .widgets-list-layout li {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F4F4F4;
}

#sidebar .widgets-list-layout li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

#sidebar .widgets-list-layout-blavatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

#sidebar .widgets-list-layout-links a {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

#sidebar .widget_categories > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Nested categories — do not let the reset above zero out Breek children spacing */
#sidebar .widget_categories ul.children {
  list-style: none;
  clear: both;
  margin-top: 10px !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid #F4F4F4;
}

#sidebar .widget_categories ul.children > li {
  padding-left: 20px;
}

#sidebar .widget_categories ul li {
  text-align: right;
  line-height: 30px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F4F4F4;
  clear: both;
}

/* Match Breek: last item in any list (incl. nested) drops bottom border —
   otherwise last child + parent both draw a line → double divider */
#sidebar .widget_categories ul li:last-of-type {
  border-bottom: 0;
  margin-bottom: 0 !important;
  padding-bottom: 0;
}

#sidebar .widget_categories ul li a {
  float: left;
  color: #333;
}

#sidebar .widget_categories ul li span {
  display: inline-block;
  border-radius: 20px;
  color: #fff !important;
  background-color: #E84E89 !important;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 25px;
  font-size: 12px;
}

#sidebar .widget_categories ul li:after {
  content: "";
  display: block;
  clear: both;
}

/* Pagination — match live accent */
.epcl-pagination {
  text-align: center;
  clear: both;
  padding-bottom: 20px;
}

.epcl-pagination div.nav .page-number {
  display: inline-block;
  margin: 0 10px;
  height: 40px;
  line-height: 40px;
  padding: 0 16px;
  border-radius: 25px;
  background: #333;
  color: #fff;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
}

.epcl-pagination div.nav a {
  background-color: #E84E89 !important;
  color: #fff !important;
}

/*
  Header→cards gap (isulnara.com):
  - live module-wrapper has NO .no-counter → margin-top 0
  - spacing comes from .content { margin-top: 60px } in Breek
  Do not force module-wrapper margin-top here.
*/
#home .module-wrapper.no-counter,
#archives .module-wrapper.no-counter {
  margin-top: 0 !important;
}

/* Single — match isulnara customizer */
#single.standard .featured-image img {
  display: none !important;
}

#single.standard .tags.absolute {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  text-align: left;
  margin-bottom: 0; /* spacing comes from .post-format-wrapper { margin-bottom: 25px } */
}

#single.standard .tags.absolute a {
  margin-left: 0;
  margin-right: 5px;
}

/* Ensure date→title gap matches live (h1.title.no-thumb.large) */
#single .meta h1.title {
  margin-top: 20px;
  margin-bottom: 30px;
}

#back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 99;
  display: none;
}

/* Desktop: hide the JS toggle; Breek :after chevron remains */
#header nav ul.menu li.menu-item-has-children > .submenu-toggle {
  display: none;
}

@media screen and (max-width: 767px) {
  /* Breek/live WP: hamburger on the left */
  #header .menu-mobile {
    display: block !important;
    position: absolute;
    left: 20px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
  }

  #header.menu-open nav.main-nav {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* White dropdown panel — override desktop white link color */
  #header nav ul.menu > li > a {
    color: #333 !important;
  }

  #header nav ul.menu > li > a.lightbox {
    color: #333 !important;
  }

  /* Replace non-interactive :after chevron with a real toggle button */
  #header nav ul.menu li.menu-item-has-children:after {
    display: none !important;
  }

  #header nav ul.menu li.menu-item-has-children > .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 2px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 6;
    -webkit-appearance: none;
    appearance: none;
  }

  #header nav ul.menu li.menu-item-has-children.menu-open > .submenu-toggle {
    transform: rotate(180deg);
  }

  #header nav ul.menu li.menu-item-has-children > a {
    padding-right: 36px;
  }

  /* Force open submenu — Breek max-height:0 !important can race without this */
  #header nav ul.menu li.menu-item-has-children.menu-open > ul.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 50vh !important;
    padding: 5px 0 !important;
    overflow: auto !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
  }

  #header nav ul.menu li.menu-item-has-children.menu-open > ul.sub-menu a {
    color: #333 !important;
    visibility: visible !important;
  }

  #footer .widgets .default-sidebar {
    flex-direction: column;
  }
}

/* Pagefind: indexable meta kept in DOM but not shown */
.isul-pagefind-description,
.isul-pagefind-tax {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Search lightbox */
html.isul-search-open,
html.isul-search-open body {
  overflow: hidden;
}

.isul-search-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 24px;
}

.isul-search-lightbox[hidden] {
  display: none !important;
}

.isul-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 30, 0.55);
}

.isul-search-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: 84vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  padding: 28px 24px 20px;
}

.isul-search-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

.isul-search-heading {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.isul-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.isul-search-input {
  width: 100%;
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 16px;
  margin-bottom: 12px;
}

.isul-search-input:focus {
  outline: 2px solid #00a1ba;
  border-color: #00a1ba;
}

.isul-search-status {
  min-height: 1.2em;
  margin: 0 0 12px;
  font-size: 13px;
  color: #666;
}

.isul-search-hit {
  border-top: 1px solid #eee;
  padding: 12px 0;
}

.isul-search-hit-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.isul-search-hit-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.isul-search-hit-link:hover .isul-search-hit-title {
  color: #00a1ba;
}

.isul-search-hit-excerpt {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

.isul-search-hit-excerpt mark {
  background: #fff3a3;
  color: inherit;
  padding: 0 2px;
}

.isul-search-hit-meta,
.isul-search-hit-url {
  margin: 0;
  font-size: 12px;
  color: #888;
}

.isul-search-hit-url {
  margin-top: 4px;
  word-break: break-all;
}

@media screen and (max-width: 767px) {
  .isul-search-lightbox {
    padding: 4vh 10px 16px;
  }

  .isul-search-panel {
    max-height: 90vh;
    padding: 24px 16px 16px;
  }
}

/* Comments — Breek hosted layout (#single #comments.hosted in style.min.css) */

/* Name + email on one row (Breek: .form-author float:left 49%, .form-email float:right 50%).
   Keep inputs as form direct children; clear before textarea. */
#single .comment-form.isul-comment-form .comment-form-comment {
  clear: both;
}

#single .comment-form.isul-comment-form input[type="email"].form-email {
  font-weight: 500;
}

.isul-comments-loading,
.isul-comments-error {
  color: #666;
  font-size: 14px;
}

.isul-comments-error {
  color: #b00020;
}

#single #comments.hosted .commentlist,
#single #comments.hosted .commentlist .children {
  list-style: none;
  margin: 0;
}

#single #comments.hosted .commentlist {
  padding: 0;
}

/* Level 2 indent (Breek default was padding-left: 90px on .children) */
#single #comments.hosted .commentlist > .comment > .children {
  padding-left: 90px;
}

/* Parent + child both had border-bottom → double line after a reply thread.
   Keep the separator only on the outer (top-level) comment. */
#single #comments.hosted .children > .comment {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Level 3+: keep the same indent as level 2 (no further nesting indent) */
#single #comments.hosted .children .children {
  padding-left: 0;
}

#single #comments.hosted .isul-comment-reply-to {
  margin: 4px 0 0;
  padding: 0;
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

#single #comments.hosted .isul-comment-reply-to a {
  color: #666;
  text-decoration: underline;
}

#single #comments.hosted .isul-comment-reply-to a:hover {
  color: #E84E89;
}

#single #comments.hosted .comment.isul-comment-flash {
  background: rgba(232, 78, 137, 0.08);
  transition: background 0.3s ease;
}

#single #comments.hosted .comment .date {
  font-size: 13px;
  color: #999;
  margin-left: 8px;
}

#single #comments.hosted .comment .comment-reply-link {
  display: inline-block;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

#single #comments.hosted .comment .comment-reply-link:hover {
  color: #666;
}

#single #comments.hosted .isul-comment-reply-slot .isul-comment-respond {
  margin-top: 16px;
}

#single #comments.hosted .comment-reply-title small {
  font-size: 14px;
  font-weight: 400;
}

#single #comments.hosted .comment-reply-title small a {
  color: #E84E89;
}

#single #comments.hosted .comment-reply-title small a:hover {
  color: #00BEC1;
}

.isul-turnstile-slot {
  margin: 12px 0;
}

.isul-comments-status {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.isul-email-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.isul-email-form-title {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  margin-bottom: 20px;
}

/* Match legacy wpcf7 contact form on /email/ */
.isul-email-form.wpcf7-form p {
  padding: 0 !important;
  margin-bottom: 20px;
}

.isul-email-form.wpcf7-form label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.45;
  letter-spacing: 0.3px;
  color: #333;
}

.isul-email-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 10px;
}

.isul-email-form input[type="text"],
.isul-email-form input[type="email"],
.isul-email-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #f4f4f4;
  border: 2px solid #f4f4f4;
  border-radius: 25px;
  padding: 12px 30px;
  font: 500 15px "Montserrat", sans-serif;
  color: #555;
  margin-bottom: 0;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}

.isul-email-form input[type="text"],
.isul-email-form input[type="email"] {
  height: 45px;
}

.isul-email-form textarea {
  min-height: 200px;
  height: auto;
  line-height: 1.6;
  resize: vertical;
}

.isul-email-form input[type="text"]:focus,
.isul-email-form input[type="email"]:focus,
.isul-email-form textarea:focus {
  border-color: #e7e7e7;
  background: #f4f4f4;
}

.isul-email-notice {
  color: #e84e89;
  font-weight: 600;
  margin-left: 4px;
}

.isul-email-submit {
  margin-top: 8px;
}

.isul-email-status {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}

.isul-email-section {
.isul-popular-empty {
  font-size: 13px;
  color: #666;
}

.isul-popular-date {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
