@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

h1, h2, h3, h4, h5, h6, a, button {
  font-family: 'Lato', sans-serif;
}

html {
  scroll-behavior: smooth;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.7rem); }
/* h4 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); } */

body, p, blockquote {
  font-family: 'Lora', serif;
  font-size: 1.125rem;  /* 18px */
  line-height: 1.7;     /* Generous spacing */
}

/* --------------------------------- */
/* 1. Set up CSS Variables (Light Mode) */
/* --------------------------------- */
:root {
  --bg-color: #1e1e21;
  --text-color: #d1d1d1;
  --accent-color: #ffa33a;
  --accent-color-hover: #c96f00;
}

/* --------------------------------- */
/* 2. Set Dark Mode Variables       */
/* --------------------------------- */
/* @media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1e1e21;
    --text-color: #d1d1d1;
    --accent-color: #ffa33a;
    --accent-color-hover: #c96f00;
  }
} */

.footer_content {
  padding: .5rem 5%;
}

/* From Uiverse.io by mrhyddenn */ 
.cta {
  background: var(--accent-color-hover);
  border: none;
  padding: 10px 20px;
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transform: skew(-21deg);
  color: var(--bg-color);
}

.cta span {
  display: inline-block;
  transform: skew(21deg);
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  left: 0;
  background: rgb(20, 20, 20);
  opacity: 0;
  z-index: -1;
  transition: all 0.5s;
}

.cta:hover {
  color: var(--accent-color-hover);
}

.cta:hover::before {
  left: 0;
  right: 0;
  opacity: 1;
}

/* --------------------------------- */
/* 3. Apply the Colors             */
/* --------------------------------- */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color-hover);
  text-decoration: underline;
}

.site-branding img {
    height: 80px;
    object-fit: cover;
}

#masthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 5%;
    background-color: var(--bg-color);
    padding-top: .5rem;
}

.hero_shortsips {
    min-height: 100vh;
    background-position: center;
    display: flex;
    padding-top: min(10vh, 35%);
    align-items: center;
    gap: 2rem;
    flex-direction: column;
    position: relative;
}

.hero_shortsips::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  background-image: linear-gradient(to bottom, var(--bg-color), transparent, transparent);
  z-index: 0;
  pointer-events: none;
}

.hero_shortsips > * {
  position: relative;
  z-index: 1;
}

.hero_shortsips h1 span {
    background-color: var(--accent-color-hover);
    padding-inline: .4rem;
}

.hero_shortsips h1, .hero_shortsips p {
    max-width: 900px;
    padding-inline: 1.5rem;
    text-align: center;
    margin-inline: auto;
    color: var(--text-color);
}

.hero_shortsips p {
    margin-top: 0;
}

.single_story {
    display: grid;
    grid-template-columns: 70% calc(30% - 1.5rem);
    max-width: 1200px;
    margin-inline: auto;
}

.single_story .content-area {
  padding: 5%;
  text-align: justify;
}

.sidebar .sidebar_wrapper {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 1.5rem;
}

.sidebar .sidebar_wrapper h3 {
  margin-top: 0;
}

.site-info {
    text-align: center;
    padding-block: .5rem;
    border-top: 1px solid var(--accent-color-hover);
}

.mailpoet_custom_inline {
  display: flex;
  gap: 6px;
  border: 1px solid #ccc;
  padding: 4px;
  flex-wrap: wrap;
  border-radius: 8px;
}
.mailpoet_custom_inline input { border: none; flex: 1; padding: 8px; }
.mailpoet_custom_inline button {
    padding: 8px 14px;
    cursor: pointer;
    background: var(--accent-color);
    border: 0;
    border-radius: 0.3rem;
    color: var(--bg-color);
}
#mailpoet_msg { margin-top: 8px; font-size: 14px; }

.header_stories_section {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
}

.genre_explore {
  display: block;
  margin: 2rem auto 0 auto;
  width: fit-content;
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  padding: .8rem;
  transition: all .5s;
}

#load_more_stories {
  margin-top: 3rem;
  background: var(--accent-color);
  border: none;
  border-radius: 10px;
  padding: .8rem;
  margin-inline: auto;
  display: block;
}

#load_more_stories[disabled] {
  opacity: .4;
}

.genre_explore:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

#stories_section {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.genre_cards, #stories_list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.posts {
  max-width: 1200px;
  margin-inline: auto;
  padding: 2rem 1.5rem;
}

.story-item {
  width: fit-content;
  max-width: 260px;
  background-color: var(--bg-color);
  border-radius: 1rem;
  border: 1.5px solid var(--accent-color);
  transition: .5s ease;
}

.story-item:hover {
  box-shadow: 0 0 10px 1px var(--accent-color);
}

.story-item:hover .overlay_article img  {
  scale: 1.05;
}

.story-item a, .story-item h3{
  line-height: normal;
  margin: 0;
}

.story-item a:hover {
  text-decoration: none;
}

.story-item img {
  width: 100%;
  border-radius: 1rem;
}

.line_clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.story_item_content h3 {
  margin-block: 1rem;
  color: var(--text-color);
}

.story_item_content p {
  margin: 0;
  color: var(--text-color);
}

.story_item_content {
  padding: 1rem;
}

.header_stories_section .legende_line {
  flex-grow: 1;
  height: 1.5px;
  background-color: var(--text-color);
}

.overlay_article {
  position: relative;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.overlay_article img {
  transition: all .4s;
}

.overlay_article .min_read {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  font-size: .95rem;
  z-index: 2;
  justify-content: center;
  align-items: center;
  gap: .2rem;
}

.overlay_article .category {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  font-size: .95rem;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  align-items: end;
  gap: .2rem;
  max-width: min-content;
}

.comment-item {
  display: flex;
  align-items: start;
  gap: 1.5rem;
  margin-top: 1rem;
}

#custom-comment-form input:first-child, #custom-comment-form textarea{
  margin-bottom: 1.5rem;
  padding: .8rem;
}

#custom-comment-form button {
  padding: 8px 14px;
  cursor: pointer;
  background: var(--accent-color);
  border: 0;
  border-radius: 0.3rem;
  color: var(--bg-color);
}

.category span {
  width: max-content;
}

#comment-list{
  margin-top: 2.5rem;
}

.overlay_article::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, var(--bg-color), transparent);
}

#primary-menu {
  gap: 1.5rem;
  transition: .8s ease;
}

button {
  cursor: pointer;
}

.menu-open {
  position: fixed;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 99;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.menu-close {
	display: none;
  z-index: 100;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.main-navigation.toggled .menu-toggle {
	display: none;
}

.main-navigation.toggled .menu-close {
	display: block;
  background-color: transparent;
  border: none;
  font-size: 2rem;
  color: var(--accent-color);
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.input_newsletter {
  color: var(--text-color);
}

.search_page {
  padding: 3rem 5%;
}

.search_entry {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border: 1px solid var(--text-color);
}

.search_entry img {
  max-width: 150px;
}

.like_this_story {
  position: fixed;
  right: 0;
  top: 20%;
  background: var(--accent-color);
  padding: 0.5rem;
  color: var(--bg-color);
  font-size: 1.5rem;
  border-radius: 10px 0 0 10px;
  z-index: 99;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.like_this_story .btn-like {
  border: 0;
  padding: 0;
  background-color: transparent;
  align-items: center;
  justify-content: center;
  display: flex;
}

.overlay_article .likes {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--accent-color);
  padding: .4rem;
  border-radius: 10px;
}

.main_contact, .main_about, .privacy_ {
  padding: 3rem 5%;
  background-position: center;
  background-size: cover;
  position: relative;
}

.main_contact .input {
  padding: .8rem;
}

.main_contact > *, .main_about > * {
  position: relative;
  z-index: 1;
}

.wpcf7-form label {
  color: var(--accent-color);
}

.wpcf7-form {
  max-width: 700px;
  margin: auto;
}

.main_contact::after, .main_about::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
}

.main_about::after {
  background-color: rgba(0,0,0,0.8);
}

.main_contact::after {
  background-color: rgba(0,0,0,0.4);
}

.wpcf7-form input[type="submit"] {
  padding: 8px 14px;
  cursor: pointer;
  background: var(--accent-color);
  border: 0;
  border-radius: 0.3rem;
  color: var(--bg-color);
}

.main_about h1 {
  color: var(--accent-color);
}

.main_about .subheading {
  color: var(--accent-color);
  font-style: italic;
}

.footer_logo_desc {
  padding: 0 5% 1rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  row-gap: 1.5rem;
}

.footer_logo_desc .menus {
  margin-inline: auto;
}

#menu-footer {
  padding: 0;
  list-style: none;
  margin: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

#menu-footer h3 {
  margin-bottom: 0;
}

.genres_section {
  padding: 2.5rem 5%;
}

.genre_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--accent-color);
    margin-bottom: 2rem;

}

.error_already {
  margin-block: 1rem;
  color: red;
}

.correct_newsletter {
  margin-block: 1rem;
  color: green;
}

.newsletter-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

#mailpoet_msg {
  flex-grow: 1;
  width: 100%;
}

.stories_category_page , .error-404 {
  padding: 2rem 5%;
}

.main_about span {
  color: var(--accent-color);
  font-style: italic;
}

/* Basic Modal Styles */
/* Hide the modal by default 
  Use visibility/opacity for a smooth fade-in
*/
.modal_newsletter {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease-in-out;
    
    /* This is new - add a dark semi-transparent backdrop 
      This makes the modal "pop"
    */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark backdrop */
    z-index: 999; /* Make sure it's on top */
    
    /* Use flex to center the content div inside */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* This class is added by JavaScript to show the modal 
*/
.modal_newsletter.is-visible {
    visibility: visible;
    opacity: 1;
}

.input_newsletter input {
  min-width: 250px;
}

/* This is your *actual* modal content box from the previous step.
  We need to give it a position so it sits on top of the backdrop.
*/
.modal_newsletter .modal_newsletter_content {
    background: var(--text-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 650px;
    position: relative; /* This is key */
    z-index: 1000;
    
    /* This stops the backdrop click-listener from firing
       when you click *inside* the content box */
    pointer-events: auto; 
}

/* If you use the optional "click outside" logic,
  you'll need this to make the backdrop clickable.
*/
.modal_newsletter {
    pointer-events: none;
}
.modal_newsletter.is-visible {
    pointer-events: auto;
}

/* 1. The Close Button */
.modal_newsletter_close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: 300;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

/* This makes the modal content split (image on left, text on right) */
.modal_newsletter_content {
    display: flex;
    align-items: center;
    padding: 2.5rem; /* More padding */
}

/* 2. The Image */
.modal_newsletter_image {
    flex: 0 0 200px; /* Give the image a fixed width */
    margin-right: 2.5rem;
}
.modal_newsletter_image img {
    width: 100%;
    object-fit: cover;
    height: 300px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 3. The Text Content */
.modal_newsletter_text h2 {
    font-size: 1.8rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.modal_newsletter_text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 5. The Mailpoet Form */
.newsletter_form_embed .mailpoet_form {
    /* You can override Mailpoet's default styles here */
}



@media (max-width: 1000px) {
    .single_story {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-search {
      display: none;
    }
  
  #stories_section {
    gap: 2rem;
  }

    .menu-toggle {
      border: none;
      background-color: transparent;
    }

    .site-header {
      padding-inline: .5rem;
    }

    .site-branding img {
      height: 60px;
    }
    .modal_newsletter .modal_newsletter_content {
      padding: 1rem;
    }
}

/* --- Responsive for Mobile --- */
@media (max-width: 600px) {
    .modal_newsletter_content {
        flex-direction: column; /* Stack image and text */
        padding: 2rem;
    }
    .modal_newsletter_image {
        margin-right: 0;
        margin-bottom: 1.5rem;
        width: 150px; /* Make image smaller */
        display: none;
    }
    .modal_newsletter_text {
        text-align: center;
    }
    .modal_newsletter_text h2 {
        font-size: 1.5rem;
    }
    .modal_newsletter_text p {
        font-size: 1rem;
    }
}