/*
Theme Name: Just Being Together
Theme URI: http://example.com/just-being-together
Author: You
Author URI: http://example.com
Description: A warm, photo-forward theme for personal storytelling with a focus on wellness and connection.
Version: 1.0
*/

/* ===== BASE STYLES ===== */
body {
  font-family: 'Nunito Sans', sans-serif;
  margin: 0;
  background: #f9f2e7;
  color: #222;
}

h1, h2 {
  font-family: 'Domine', serif;
  margin-bottom: 0.5rem;
}

a{
  color:#83b6a3;
}

/* ===== HEADER ===== */
.site-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo img {
  max-height: 250px;
  margin-bottom: 0.5rem;
  margin-left:2rem;
  margin-right:2rem;
}

.nav-container{
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  text-align: center;
}


.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2.6rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size:1.1em;
  line-height: 1.2;
}

.main-nav li {
  display: inline;
  position:relative;
}
.main-nav li::after{    
    content: '';
    display: inline-block;
    border-right: solid 2px #fbc4ab;
    height: 1.5em;
    position: absolute;
    right: -1em;
    top: 0.4em;
}
.main-nav li:last-child::after{
  display:none;
}

.main-nav a {
  text-decoration: none;
  color: #684927;
  font-weight: 700;
  font-family: 'Nunito Sans', sans-serif;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #dd6c4f;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 60vh;
  background-size: cover;
  background-position: 50% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  position: relative;
}

.hero-text {
  padding: 1.5rem;
  position: absolute;
  left: 0;
  top: 0;
  background-image: linear-gradient(to bottom right, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0));
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.hero-text * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text h1 {
  font-family: 'Domine', serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.25rem;
}

/* ===== ARTICLES SECTION ===== */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  background-color: #fffaf3;
}

.articles article {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.articles article h2 a{
  text-decoration:none;
  color:inherit;
}

.articles img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  height: auto;
}
.articles article .post-meta{
  display:none;
}
/* ===== TOPICS SECTION ===== */
.explore-topics {
  padding: 3rem 2rem;
  text-align: center;
}

.topics-grid {
    display: flex;
    max-width: 1200px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem auto 0 auto;
}

.topic-card {
    text-align: center;
    width: 20%;
    min-width: 180px;
    margin-left: 1rem;
    margin-bottom: 2em;
    margin-right: 1rem;
}

.topic-card img {
  width: 120px;
  height: auto;
}

.topic-card h3, .topic-card p {
  margin: 0 auto;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background-color: #fffaf3;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.cta-box {
  max-width: 600px;
  margin: auto;
}

.cta-button {
  display: inline-block;
  background-color: #e67e22;
  color: white;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #c85a3f;
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 1rem;
  background: #eee0d1;
  font-size: 0.9rem;
  color: #555;
}

/* ===== DYNAMIC CONTENT STYLES ===== */
.content {
  background: #fffaf3;
  min-height: 60vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Post/Page content styling */
.post-content, .page-content {
  line-height: 1.7;
  color: #333;
}

.post-content h2, .page-content h2 {
  font-family: 'Domine', serif;
  color: #222;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content h3, .page-content h3 {
  font-family: 'Domine', serif;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-content p, .page-content p {
  margin-bottom: 1.5rem;
}

.post-content img, .page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Post meta styling */
.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-meta a {
  color: #dd6c4f;
  text-decoration: none;
}

.post-meta a:hover {
  text-decoration: underline;
}

/* Links and buttons */
.read-more {
  color: #dd6c4f;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* Post navigation */
.post-navigation {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-navigation a {
  color: #dd6c4f;
  text-decoration: none;
  font-weight: 600;
}

.post-navigation a:hover {
  text-decoration: underline;
}

/* Pagination */
.pagination {
  text-align: center;
  padding: 2rem 0;
}

.pagination a, .pagination .current {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 4px;
  text-decoration: none;
  color: #dd6c4f;
  border: 1px solid #dd6c4f;
}

.pagination a:hover, .pagination .current {
  background: #dd6c4f;
  color: white;
}

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Search form */
.search-form {
  max-width: 400px;
  margin: 0 auto;
}

.search-form input[type="search"] {
  width: 70%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Nunito Sans', sans-serif;
}

.search-form input[type="submit"] {
  width: 25%;
  padding: 0.75rem;
  background: #dd6c4f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  margin-left: 0.5rem;
}

.search-form input[type="submit"]:hover {
  background: #c85a3f;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .articles {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .topics-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
  
  .topic-card img {
    width: 80px;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}