/*
 Theme Name:   Blog
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* -- THEME TWEAKS -- */



/* Text Balance / Pretty */

:is(h1, h2, h3, h4, h5, h6),
.balance {
  text-wrap: balance;
}

p,
div,
blockquote,
li {
  text-wrap: pretty;
}

::marker {
  color: #4b5563
}

/* -- UTILITIES -- */
:focus-visible {
  outline: 0px dotted ButtonText;
}

/* Line Limits */
.line-limit-3,
.line-limit-2,
.line-limit-1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-limit-3 {
  -webkit-line-clamp: 3;
}

.line-limit-2 {
  -webkit-line-clamp: 2;
}

.line-limit-1 {
  -webkit-line-clamp: 1;
}

/* Visually Hidden */
.visually-hidden:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}




/* Fluid Typography Scale */

h1,
.fs-h1 {
  font-size:2.25em;
  line-height:1.1;
  font-weight: 800;
}

h2,
.fs-h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}

h3,
.fs-h3 {
  font-size: 1.25em;
  line-height:1.6;
  font-weight: 600;
}

h4,
.fs-h4 {
  font-size:1.125rem;
  line-height:1.75rem;
  font-weight:700;
}

/* h5,
.fs-h5 {
  font-size: clamp(1.4063rem, 1.2784rem + 0.5114vw, 1.6875rem);
}

h6,
.fs-h6 {
  font-size: clamp(1.2656rem, 1.1506rem + 0.4602vw, 1.5188rem);
} */

.transition {
  transition: all 0.15s cubic-bezier(.4, 0, .2, 1);
}
a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(250, 204, 21, .3);
}
a:hover  {
  text-decoration-color:#facc15;
}
body.page-template-default:not(.home)  a{
  color: #fafafa;
  text-decoration-color: #fafafa;
}

/*  header */
.site-header {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1f2937;
  background-color: rgb(25 24 27 / 80%);
  backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .site-header {
    padding: 0;
  }

  .has-inline-mobile-toggle .inside-header {
    justify-content: space-between;
  }

  .main-navigation {
    flex-grow: 0;
  }
}

.inside-header {
  align-content: center
}

.site-branding-container .site-logo {
  margin-right: 0;
}

.site-branding-container {
  gap: 0.5rem;
}

.site-header .site-branding .main-title {
  padding: 0;
  margin: 0;
  font-size: unset;
}

.site-header .site-branding .main-title a {
  font-size: 1rem;
  height: 24px;
  line-height: 24px;
  font-weight: 700;
}

.main-navigation .main-nav ul {
  column-gap: .25rem;
}

.main-navigation .main-nav ul li {
  padding: 0.5rem;
}

.main-navigation .main-nav ul li a {
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: unset;
}

.main-navigation .main-nav ul li.gb-cta-block {
  padding: .5rem 1rem;
  background-color: #9333ea;
  border: 2px solid #c084fc;
  border-radius: 9999px;
  width: fit-content;
}
@media (max-width: 768px) {
  .main-navigation .main-nav ul li.gb-cta-block {
    margin-top: .5rem;
  }
}

@media screen and (min-width: 768px) {
  .main-navigation {
    flex-grow: 1;
  }

  .main-navigation li:last-child {
    margin-left: auto;
  }

  .nav-float-right #site-navigation {
    margin-left: 1rem;
  }

  .main-navigation {
    width: 100%;
  }

  #primary-menu {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .inside-header {
    padding: .75rem 2.5rem;
  }
}

/* hero-section.css */
.hero-container {
  max-width: 1280px;
  margin: 4rem auto 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .hero-container {
    margin-top: 5rem;
  }
}

@media (min-width: 768px) {
  .hero-container {
    margin-top: 7rem;
  }
}

.hero-grid {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6rem;
  }
}

.hero-left {
  grid-column: span 7;
}

.hero-title {
  font-family: sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: rgb(249, 250, 251);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {    
    font-size: 6rem;
    line-height: 1;
  }

}
.hero-title strong{
  display: block;    
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 500;
  white-space:unset;
  color: #9ca3af;
  margin-top: .5rem;
  text-transform: none;
  }


@media (min-width: 640px) {
  .hero-title strong{
    display: block;    
    font-size: 1.5rem;
    line-height: 2rem;
  
    }
}

.hero-description {
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

.cta-section {
  max-width: 28rem;
  margin-bottom: 2rem;
}

.cta-caption {
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3afcc;
  margin-bottom: 0.5rem;
}

.cta-form {
  display: flex;
  gap: 0.5rem;
}

.cta-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  outline: none;
}

.cta-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px #6366f1;
}

.cta-button {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: #6366f1;
  color: #fff;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button:hover {
  background-color: #4f46e5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .stats-grid {
    gap: 2rem;
  }
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgb(249, 250, 251);
}

@media (min-width: 640px) {
  .stat-value {
    font-size: 1.875rem;
  }
}

.stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
}

@media (min-width: 640px) {
  .stat-label {
    font-size: 0.875rem;
  }
}

.hero-right {
  grid-column: span 5;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .hero-right {
    margin-top: 0;
  }
}

.hero-image-container {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero-image-container {
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
  }
}

.hero-image-container img {
  object-fit: cover;
  object-position: center 20%;
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}

.hero-image-cta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background-color: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.hero-image-cta:hover {
  border-color: #facc15;
}

.hero-image-cta-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-cta-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cta-text .name {
  color: rgb(249, 250, 251);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.hero-cta-text .role {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* image-gallery.css */
.gallery-section {
  margin-top: 6rem;
}

@media (min-width: 640px) {
  .gallery-section {
    margin-top: 7rem;
  }
}

.gallery-wrapper {
  overflow-x: hidden;
  padding: 1rem 0;
  display: flex;
  justify-content: center;
}

.gallery-track {
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
}

@media (min-width: 640px) {
  .gallery-track {
    gap: 2rem;
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 9 / 10;
  width: 11rem;
  flex: none;
  overflow: hidden;
  background: #f3f4f6;
  border-radius: 0.75rem;
}

@media (min-width: 640px) {
  .gallery-item {
    width: 18rem;
    border-radius: 1rem;
  }
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Optional rotation effects */
.rotate-right {
  transform: rotate(2deg);
}

.rotate-left {
  transform: rotate(-2deg);
}


/* Archive Category NAV */
.category-list-with-blog {
  margin-top: 1.5rem;
  border-bottom: 2px solid #1f2937;
}

.category-list-with-blog ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

.category-list-with-blog ul li {

  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;


}


.category-list-with-blog ul li a {
  text-decoration: none;
  color: #f9fafb80;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.category-list-with-blog ul li:not(.current) a:hover {
  background-color: #1f2937;
}

.category-list-with-blog ul li.current {
  border-bottom: 2px solid #eab308;
}

.category-list-with-blog ul li.current a {
  color: #eab308;
}

/* Hero Search Box */
.hero-search-box input[type="search"] {
  font-size: .875rem;
  line-height: 1.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background-color: #19181b;
  border-color: #1f2937;
}

.emoji {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

.emoji a[rel="tag"][href="http://blog.local/category/seo/"]::before {
  content: "🔥";
  margin-right: 0.5rem;
}

/* -- simpletoc -- */
.simpletoc-title {
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0.5rem 1rem 1rem 1rem;
  display: inline-block;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.simpletoc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.simpletoc-list li {
  position: relative;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.simpletoc-list li+li {
  margin-top: 0.25rem;
  /* space between items */
}

.simpletoc-list li a {
  display: block;
  padding: 0.25rem 1rem;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #9ca3af;
  /* muted gray */
}

.simpletoc-list li a:hover {
  color: #eab131;
  /* yellow-500 hover */
}

.simpletoc-list li.active {
  border-left-color: #eab131;
}

.simpletoc-list li.active a {
  color: #eab131;
  font-weight: 500;
}



/* -- author-card -- */
.author-card {
  background-color: #1f29374d;
  border: 1px solid #1f2937;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  max-width: 720px;
  margin: auto;
  color: #f9fafb;
}

.section-label {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: #888;
}

.author-info {
  display: flex;
  gap: 1.25rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.author-details {
  flex: 1;
  min-width: 0;
}

.author-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.author-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f9fafb;
}

.social-links a {
  margin-left: 0.5rem;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: #eee;
}

.author-bio {
  font-size: 0.9rem;
  color: #f9fafb;
}

.author-bio p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.author-bio a {
  font-weight: 500;
  color: #d97706;
  text-decoration: underline;
}

.author-bio a:hover {
  color: #f59e0b;
}
/* -- article-list -- */
.article-title a{
 line-height: 1.25;
}
.article-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 767px) {
  .article-title {
    -webkit-line-clamp: 2;
  }
}
@media (min-width: 768px) {
  .article-title {
    -webkit-line-clamp: 1;
  }
}
