/*
Theme Name: travelJournal
Theme URI: 
Author: 
Author URI: 
Description: Minimal starter blank theme for travelJournal.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: traveljournal
*/

body, button, input, select, textarea {
  font-family: 'Merriweather', serif;
}

h2, h3, h4, h5, h6 {
  font-weight: 700 !important;
}

       .full-width-article{
  height: 1000px;
  background: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-2) 100%);
  color: #fff;
  padding: 3rem 0;
}


.half-width-article{
  height: 680px;
  background: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-2) 100%);
  color: #fff;
  padding: 3rem 0;
}


.main-title{
    font-size: 50px;
}


.btn-rounded {
    background: #fff;
    color: #000;
    padding: 15px 40px;
    font-size: 17px;
    border-radius: 30px;
    margin-top: 20px;
    text-decoration: none;
}


/* The Main Title */
.main-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; /* Or 800 for extra chunkiness */
  text-transform: uppercase;
  font-size: 50px !important; /* Adjust based on viewport */
  line-height: 1.1;
  color: #ffffff;
  margin: 10px 0;

}

/* The Subtitle */
.subtitle {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-weight: 300; /* Light italic often looks cleaner */
  font-size: 28px;
  color: #e0e0e0; /* Slightly muted white */
}

.main-title-secondary{
  font-size: 40px;
    font-family: 'Montserrat', sans-serif;
  font-weight: 700; /* Or 800 for extra chunkiness */
  text-transform: uppercase;
  line-height: 1.1;
  color: #ffffff;
  margin: 10px 0;
}


.subtitle-secondary {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-weight: 300; /* Light italic often looks cleaner */
  font-size: 18px;
  color: #e0e0e0; /* Slightly muted white */
}

.nav ul{
    list-style: none;
}


/* Background overlay for featured images: a 40% black gradient over the image */
.full-width-article, .half-width-article {
  position: relative; /* establish containing block for overlay */
  background-position: center !important;
  background-size: 100% !important; /* baseline size controlled by CSS */
  background-size: cover;
  color: #fff;
  overflow: hidden;
  /* ensure smooth zooming of background image */
  will-change: background-size;
  transition: background-size 520ms cubic-bezier(.2,.8,.2,1);
}

/* Override to make background transitions smoother */
.full-width-article, .half-width-article {
  /* promote to its own layer for smoother animation */
  transform: translateZ(0);
  will-change: background-size, transform, opacity;
  /* slightly slower, smoother timing */
  transition: background-size 700ms cubic-bezier(.16,.84,.34,1);
  -webkit-transition: background-size 700ms cubic-bezier(.16,.84,.34,1);
}

.full-width-article::before,
.half-width-article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4));
  z-index: 1;
  pointer-events: none;
  transition: background 350ms ease;
}

/* animate opacity instead of switching background abruptly */
.full-width-article::before, .half-width-article::before {
  transition: background 420ms ease, opacity 420ms ease;
  -webkit-transition: background 420ms ease, opacity 420ms ease;
  opacity: 1;
}

.full-width-article:hover, .half-width-article:hover {
  background-size: 115% !important;
  background-size: 115%; /* stronger, smooth zoom */
  cursor: pointer;
}

.full-width-article:hover::before, .half-width-article:hover::before {
  opacity: 1; /* ensure overlay stays visible while darkening */
  background: linear-gradient(rgba(0,0,0,0.64), rgba(0,0,0,0.64)); /* darker overlay */
}

.full-width-article { min-height: 420px; }
.half-width-article { min-height: 260px; }

/* Centered text inside the image blocks should be above the overlay */
.full-width-article > div, .half-width-article > div {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  /* text-shadow: 0 2px 6px rgba(0,0,0,0.7); */
}

/* Fixed right sidebar (100px) */
.fixed-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* keep it unobtrusive */
  z-index: 9999;
}

.fixed-sidebar-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* keep it unobtrusive */
  z-index: 9999;
}

/* Reserve space for right sidebar so it doesn't overlay content */
body {
  padding:0 100px;
}



/* Hamburger button */
.hamburger {
  width: 44px;
  height: 36px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border: none;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
}
.hamburger .bar {
  display: block;
  width: 26px;
  height: 3px;
  background: #111;
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}
.hamburger.active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Fullscreen menu overlay */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 300ms ease, visibility 300ms ease, transform 300ms ease;
  z-index: 9998;
}
.fullscreen-menu.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.fullscreen-menu a {
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  letter-spacing: 0.06em;
}
.fullscreen-menu .close-hint {
  position: absolute;
  top: 12px;
  left: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}

/* When menu-open applied to body, prevent page scroll */
body.menu-open {
  overflow: hidden;
}




.vh-75{
  height: 75vh;
}

.post-container h2, .post-container h3, .post-container h4, .post-container h5, .post-container p, .post-container hr, .post-container ol, .post-container ul, .post-container li{
    width: 800px;
    margin: 20px auto;
}


.post-container img{
    max-width: 1000px;
    margin: 0 auto;
    display: block;
    justify-content: center;
}

.post-container figure{
  margin: 0 auto;
  display: block;
}

.post-container figcaption{
 padding: 5px;
}

.open-post h2{
  font-weight: 700;
  margin: 0 auto;
}

.entry-content{
    background: #fafafa;
}

figcaption.wp-element-caption{
    text-align: center;
    font-style: italic;
    color: #6d6d6d;
    font-size: 12px;
}

/* BUTTON STYLES */

a.stretched-link.primary-button{
  /* background: #595959; */
  padding: 10px 20px;
  display: inline-block;
  border-radius: 5px;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #282828;
  transition: background-color 180ms ease, transform 160ms ease, box-shadow 180ms ease, opacity 180ms ease;
  will-change: transform, box-shadow;
}

/* Hover / focus state */
a.stretched-link.primary-button:hover,
a.stretched-link.primary-button:focus{
  background-color: #444; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  transform: translateY(-2px);
  text-decoration: none;
  outline: none;
  color: #fff;
}

/* Active (pressed) state */
a.stretched-link.primary-button:active{
  transform: translateY(0) scale(0.995);
  box-shadow: 0 4px 10px rgba(0,0,0,0.28);
  background-color: #3b3b3b;
}

/* Visible focus ring for keyboard users */
a.stretched-link.primary-button:focus-visible{
  box-shadow: 0 0 0 3px rgba(89,89,89,0.18), 0 10px 24px rgba(0,0,0,0.28);
}

.card{
  overflow: hidden;
  border-radius: 8px;
}

.card img{
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center center;
  transition: transform 600ms cubic-bezier(.16,.84,.34,1), filter 300ms ease, opacity 300ms ease;
  will-change: transform, filter, opacity;
  backface-visibility: hidden;
}

.card:hover img,
.card:focus-within img{
  transform: scale(1.06);
  filter: brightness(0.92) contrast(1.02);
  opacity: 0.99;
}

.wp-block-image img{
  width: 100%;
}

p{
  line-height: 1.75;
  font-size: 18px;
  color: #444;
}



/* Hide the fixed sidebar and remove extra padding on small screens */
@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .post-hero.vh-75{
    height: 50vh;
  }

   .btn-rounded {
    background: #fff;
    color: #000;
    padding: 10px 30px;
    font-size: 14px;
    border-radius: 30px;
    margin-top: 20px;
    text-decoration: none;
}

  .main-title{
    font-size: 32px !important;
  } 

  .fixed-sidebar, .fixed-sidebar-left, .d-mobile-hidden {
    display: none !important;
  }

  /* .article-post{
    height: 400px !important;
  } */

  .article-post h2{
    font-size: 22px !important;
  }

  .full-width-article, .half-width-article { min-height: 200px!important; }

  .full-width-article > div, .half-width-article > div {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0;
  /* text-shadow: 0 2px 6px rgba(0,0,0,0.7); */
}

.full-width-article, .half-width-article{
  height: auto;
}

.subtitle, .subtitle-secondary{
  font-size: 16px;
}

.post-container h2, .post-container h3, .post-container h4, .post-container h5, .post-container p, .post-container hr, .post-container ol, .post-container ul, .post-container li{
    width: auto;
    margin: 20px 30px;
}


}