/*
 * turtleSpaces Hugo Theme
 * Based on InteriorPress/ArileWP WordPress theme
 * Dark theme with yellow (#fff76f) accents
 */

/* ==========================================================================
   Base & Body
   ========================================================================== */

body {
  color: #fff;
  font-family: 'PT Sans', 'Open Sans', sans-serif;
  font-size: 1.2rem;
  line-height: 1.7;
}

body,
#wrapper {
  background-color: #18191b;
}

body.custom-background {
  background-position: left top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  color: #fff76f;
  text-transform: uppercase;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 700;
}

h1, h2 { letter-spacing: 2px; }
h3 { letter-spacing: 3px; }
h4, h5 { letter-spacing: 3px; }
h6 { letter-spacing: 4px; }

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.3rem; }
h6 { font-size: 1.1rem; }

a { color: #fff76f; text-decoration: none; }
a:hover, a:active { color: #fff76f; text-decoration: underline; }

p { margin-bottom: 1.25rem; }

blockquote {
  border-left: 3px solid #fff76f;
  padding: 0.5rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}
blockquote:before {
  color: rgba(255, 255, 255, 0.08);
}

.text-accent { color: #fff76f; }
.text-white { color: #fff; }

/* ==========================================================================
   Skip Link
   ========================================================================== */

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
}

.screen-reader-text:focus {
  clip: auto;
  height: auto;
  width: auto;
  background: #18191b;
  color: #fff76f;
  padding: 1rem;
  z-index: 10000;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar.navbar-header-wrap {
  padding: 0;
  width: 100%;
  z-index: 1000;
}

.navbar .container-full {
  width: 100%;
  padding: 0 30px;
}

.navbar .container-full > .row {
  width: 100%;
  margin: 0;
  flex-wrap: nowrap;
}

.navbar-brand {
  padding: 10px 0;
}

.navbar-brand img.custom-logo {
  max-height: 80px;
  width: auto;
}

.sticky-navbar-brand {
  display: none;
}

.navbar .nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar .nav .menu-item .nav-link {
  text-transform: uppercase;
  color: #ddd;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 30px 18px;
  transition: color 0.3s;
}

.navbar .nav .menu-item:hover .nav-link,
.navbar .nav .menu-item.active .nav-link,
.navbar .nav .menu-item .nav-link:focus {
  color: #fff76f;
  text-decoration: none;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Sticky header */
.header-sticky.header-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(24, 25, 27, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-fixed-top .navbar-brand {
  display: none;
}

.header-fixed-top .sticky-navbar-brand {
  display: inline-block;
}

.header-fixed-top .sticky-navbar-brand img {
  max-height: 50px;
}

/* Dropdown menus */
.dropdown-menu {
  background-color: #222326;
  border: 1px solid #3a3b3e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dropdown-menu .dropdown-item {
  color: #ddd;
  font-size: 20px;
  padding: 6px 20px;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #2e2f33;
  color: #fff76f;
}

/* ==========================================================================
   Scrollbars
   ========================================================================== */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #18191b;
}

::-webkit-scrollbar-thumb {
  background: #3a3b3e;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #fff76f;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #3a3b3e #18191b;
}

/* ==========================================================================
   Page Header Area
   ========================================================================== */

.theme-page-header-area {
  padding: 12rem 0 1rem 0;
  position: relative;
  background-image: url('/img/uploads/2020/08/header.jpg');
  background-size: cover;
  background-position: center center;
}

.theme-page-header-area .overlay {
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.theme-page-header-area .container {
  position: relative;
  z-index: 1;
}

.page-header-title h1 {
  letter-spacing: 3px;
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(255, 247, 111, 0.6);
}

.page-breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-breadcrumb li {
  display: inline;
  color: #ccc;
  font-size: 14px;
}

.page-breadcrumb li + li:before {
  content: " / ";
  padding: 0 8px;
  color: #999;
}

.page-breadcrumb > li a { color: #fff; }
.page-breadcrumb > li a:hover,
.page-breadcrumb > li.active { color: #fff76f; }

/* ==========================================================================
   Content Area
   ========================================================================== */

.theme-block.theme-blog {
  padding: 4rem 0;
}

.theme-bg-grey {
  background-color: transparent;
}

.theme-bg-dark,
.theme-bg-default {
  background-color: transparent;
}

/* Post / Article */
.post {
  margin-bottom: 2rem;
}

.post .post-content {
  background: transparent;
}

.entry-content {
  line-height: 1.8;
}

.entry-content img,
.entry-summary img,
.post-content img,
.col-lg-8 img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.entry-content h3,
.entry-content h5 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.entry-meta {
  letter-spacing: 1px;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 1rem;
}

.entry-meta i { margin-right: 5px; }

/* Post list */
.post-list-item {
  margin-bottom: 2.5rem;
}

.entry-title a {
  color: #fff76f;
}

.entry-title a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.entry-summary {
  margin: 1rem 0;
  color: #ccc;
}

.btn-readmore {
  color: #fff76f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.post-divider {
  border-color: #333;
}

/* Pagination */
.pagination {
  justify-content: center;
  margin-top: 2rem;
}

.pagination .page-link {
  background: #202020;
  border-color: #333;
  color: #fff76f;
}

.pagination .page-item.active .page-link {
  background: #fff76f;
  border-color: #fff76f;
  color: #000;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar .widget {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.sidebar .widget .widget-title {
  background-color: #202020;
  padding: 10px 20px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .widget ul li {
  border-bottom: 1px solid #333;
  padding: 8px 0;
}

.sidebar .widget ul li a {
  color: #ccc;
  font-size: 14px;
}

.sidebar .widget ul li a:hover {
  color: #fff76f;
  text-decoration: none;
}

.sidebar .widget.text_widget {
  padding: 0 5px;
}

.sidebar .sidebar-logo {
  max-width: 120px;
  margin: 0.5rem auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: #111;
}

.footer-sidebar {
  padding: 30px 15px;
}

.footer-sidebar .widget-title {
  color: #fff76f;
  font-family: 'PT Sans Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.footer-sidebar .textwidget {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
}

.footer-sidebar .textwidget a {
  color: #fff76f;
}

.site-info {
  background-color: #0b0b0b;
  padding: 20px 0;
  font-size: 14px;
}

.site-info,
.site-info a {
  color: #fff76f;
}

/* Recent posts list in sidebar */
.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts-list li {
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.recent-posts-list li a {
  color: #c0c0c0;
}

.recent-posts-list li a:hover {
  color: #fff76f;
}

/* Sidebar categories list */
.widget_categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget_categories li {
  padding: 6px 0;
  border-bottom: 1px solid #333;
}

.widget_categories li a {
  color: #c0c0c0;
}

.widget_categories li a:hover {
  color: #fff76f;
}

/* Sidebar search */
.widget_search .form-control {
  background: #2a2a2e;
  border: 1px solid #444;
  color: #fff;
}

.widget_search .btn-success {
  background: #fff76f;
  border-color: #fff76f;
  color: #000;
}

/* ==========================================================================
   Scroll to Top
   ========================================================================== */

.page-scroll-up {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: none;
}

.page-scroll-up a {
  display: block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  background: #fff76f;
  color: #000;
  border-radius: 3px;
  font-size: 20px;
  transition: all 0.3s;
}

.page-scroll-up a:hover {
  background: #fff;
  text-decoration: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-default {
  background: #fff76f;
  color: #000;
  padding: 10px 30px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: all 0.3s;
}

.btn-default:hover,
.btn-default:focus {
  background: #fff;
  color: #000;
  text-decoration: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
  .navbar .nav {
    flex-direction: column;
  }

  .navbar .nav .menu-item .nav-link {
    padding: 10px 15px;
  }

  .theme-page-header-area {
    padding: 8rem 0 1rem 0;
  }

  .m-right-auto {
    margin-right: 0 !important;
  }
}

@media (max-width: 767px) {
  .theme-page-header-area {
    padding: 6rem 0 1rem 0;
  }

  .theme-block.theme-blog {
    padding: 2rem 0;
  }

  .page-header-title h1 {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   Code Blocks
   ========================================================================== */

code {
  background: #2a2a2e;
  color: #e0e0e0;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.9em;
}

pre {
  background: #1e1e22;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
  color: #d4d4d4;
  font-size: 14px;
  white-space: pre;
}

/* Code block copy button */
pre {
  position: relative;
}

.code-copy-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  padding: 4px 6px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.code-copy-btn:hover {
  color: #fff76f;
}

.code-copy-btn.copied {
  color: #4caf50;
}

/* ==========================================================================
   Utility — match WP theme classes
   ========================================================================== */

.m-right-auto { margin-right: auto; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.wp-image-34, .wp-image-97 { max-width: 100%; height: auto; }

/* Embeds / iframes */
.entry-content iframe {
  max-width: 100%;
  border: 1px solid #333;
  border-radius: 4px;
  margin: 1rem 0;
}

/* ==========================================================================
   Gallery (wp-gallery shortcode)
   ========================================================================== */

.wp-gallery {
  display: grid;
  gap: 16px;
  margin: 1.5rem 0;
}

.wp-gallery-cols-1 { grid-template-columns: 1fr; }
.wp-gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wp-gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }

.wp-gallery p {
  margin: 0;
}

.wp-gallery img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.wp-gallery img:hover {
  opacity: 0.85;
  box-shadow: 0 0 12px rgba(255, 247, 111, 0.6);
}

/* Gallery lightbox modal */
#galleryLightbox .modal-dialog {
  max-width: 90vw;
  margin: 2vh auto;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 4vh);
}

#galleryLightbox .modal-content {
  background: transparent;
  border: none;
  text-align: center;
}

#galleryLightbox .modal-body {
  padding: 0;
}

#galleryLightbox .modal-body img {
  max-width: 100%;
  max-height: 90vh;
  margin: 0 auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

#galleryLightbox .close {
  position: fixed;
  top: 15px;
  right: 20px;
  color: #fff;
  opacity: 0.8;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  z-index: 1;
}

#galleryLightbox .close:hover {
  opacity: 1;
  color: #fff76f;
}

#galleryLightbox .modal-backdrop,
.modal-backdrop {
  background-color: #000;
}

.modal-backdrop.show {
  opacity: 0.9;
}

@media (max-width: 767px) {
  .wp-gallery-cols-2,
  .wp-gallery-cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .wp-gallery-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Pagefind Search UI
   ========================================================================== */

:root {
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: #fff76f;
  --pagefind-ui-text: #ddd;
  --pagefind-ui-background: #222326;
  --pagefind-ui-border: #3a3b3e;
  --pagefind-ui-tag: #2e2f33;
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 3px;
  --pagefind-ui-image-border-radius: 3px;
  --pagefind-ui-image-box-ratio: 3 / 2;
  --pagefind-ui-font: 'PT Sans', 'Open Sans', sans-serif;
}

#search .pagefind-ui {
  font-family: 'PT Sans', 'Open Sans', sans-serif !important;
}

#search .pagefind-ui__result-link {
  font-family: 'PT Sans Narrow', sans-serif !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#search .pagefind-ui__search-input {
  background: #2a2a2e !important;
  color: #fff !important;
  border: 1px solid #444 !important;
}

#search .pagefind-ui__search-input::placeholder {
  color: #888 !important;
}

#search .pagefind-ui__search-clear {
  color: #aaa !important;
  background: #2a2a2e !important;
  border: 1px solid #444 !important;
  border-left: none !important;
  border-radius: 0 3px 3px 0 !important;
}

#search .pagefind-ui__search-clear:focus {
  outline: none !important;
}

#search .pagefind-ui__form::before {
  background-color: #888 !important;
  z-index: 1;
}

#search .pagefind-ui__message {
  color: #999 !important;
}

#search .pagefind-ui__result {
  border-top: 1px solid #3a3b3e !important;
  padding: 1.5em 0;
}

#search .pagefind-ui__result-link {
  color: #fff76f !important;
}

#search .pagefind-ui__result-title {
  color: #fff76f !important;
}

#search .pagefind-ui__result-excerpt {
  color: #ccc !important;
}

#search .pagefind-ui__result-nested .pagefind-ui__result-link {
  color: #ddd !important;
}

#search mark.pagefind-ui__result-mark,
#search .pagefind-ui__result-excerpt mark,
#search mark {
  background: rgba(255, 247, 111, 0.25) !important;
  color: #fff !important;
}

#search .pagefind-ui__results-area hr {
  border-color: #2a2a2e !important;
  opacity: 0.5;
}

#search .pagefind-ui__button {
  background: #2e2f33 !important;
  color: #ddd !important;
  border: 1px solid #3a3b3e !important;
}

#search .pagefind-ui__button:hover {
  background: #3a3b3e !important;
  color: #fff76f !important;
}
