/*
Theme Name: Social Nature
Theme URI: https://socialnature.com
Author: Social Nature Team
Author URI: https://socialnature.com
Description: A modern, WPBakery-compatible theme for Social Nature with custom typography and styling.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: social-nature
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Karla", sans-serif;
  font-size: 18px;
  line-height: 28px;
  color: #333333;
  background-color: #ffffff;
}

/* ==========================================================================
     Typography - Desktop
     ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

h1 {
  font-size: 30px;
  line-height: 36px;
  color: #111111;
}

h2,
h3,
h4,
h5,
h6 {
  margin-top: 1rem;
  padding-bottom: 1.5rem;
  font-size: 20px;
  line-height: 28px;
}

h2 {
  color: #111111;
}

h3 {
  color: #37c0c0;
}

h4 {
  color: #08adcd;
}

h5 {
  color: #db2573;
}

h6 {
  color: #111111;
}

p {
  font-family: "Karla", sans-serif;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: #333333;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.wpb_content_element,
ul.wpb_thumbnails-fluid > li {
  margin-bottom: 1.5rem !important;
}

p a {
  color: #08adcd;
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
     Images
     ========================================================================== */

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.alignleft {
  float: left;
  margin: 0 1.5rem 1.5rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1.5rem 1.5rem;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* ==========================================================================
     Blockquotes
     ========================================================================== */

blockquote {
  background-color: #ebf9f9;
  border-left: 4px solid #37c0c0;
  border-radius: 4px;
  margin: 0 0 1.5rem 0;
  padding: 1.5rem 1rem;
  font-family: "Karla", sans-serif;
  font-size: 18px;
  line-height: 24px;
  color: #5d5d5d;
}

blockquote p {
  color: #5d5d5d;
  margin-bottom: 0;
}

blockquote h1 {
  font-family: "Karla", sans-serif;
  font-size: 18px;
  line-height: 28px;
  margin-top: 12px;
  color: #244747;
  font-weight: 700;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-style: italic;
  color: #5d5d5d;
}

/* ==========================================================================
     Layout - Posts and Custom Post Types (Universal)
     ========================================================================== */

/* 680px layout for all post types (except pages) */
.social-nature-post-layout .site-main {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 56px;
}

/* Apply styles to ALL singular post types (posts, blog, and any future CPTs) */
.social-nature-post-layout .entry-header {
  margin-bottom: 1rem;
}

.social-nature-post-layout .entry-title {
  margin-bottom: 0.75rem;
}

.social-nature-post-layout .entry-meta {
  font-size: 14px;
  line-height: 20px;
  color: #5d5d5d;
}

.social-nature-post-layout .post-thumbnail {
  margin-bottom: 1rem;
}

.social-nature-post-layout .post-thumbnail img {
  width: 100%;
  border-radius: 8px;
}

/* Archive layouts for all custom post types */
[class*="post-type-archive-"] .site-main {
  max-width: 1170px;
  margin: 0 auto;
  padding-top: 0;
}

/* ==========================================================================
      Blog Archive Layout
      ========================================================================== */

.blog-archive {
  max-width: 100% !important;
  padding: 0 !important;
  background: #f7f7f7;
}

.blog-archive-header {
  background: #def3f3;
  text-align: center;
  padding-top: 56px;
  padding-bottom: 40px;
}

.blog-archive-header .archive-title {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: #333333;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}

.blog-archive-header .archive-description {
  font-family: "Karla", sans-serif;
  font-size: 18px;
  line-height: 28px;
  color: #5d5d5d;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0px;
  max-width: 680px;
}

.blog-grid-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebebeb;
  padding: 20px 16px 16px 16px;
  min-width: 320px;
  margin: 0 auto;
}

/* .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
} */

.blog-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding-top: 12px;
}

.blog-card-title {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  margin-top: 0 !important;
  padding-bottom: 4px !important;
}

.blog-card-title a {
  color: #333333;
  text-decoration: none;
}

/* .blog-card-title a:hover {
  color: #08adcd;
} */

.blog-card-excerpt {
  font-family: "Karla", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #7d7d7d;
  margin: 0 0 16px 0;
}

.blog-card-date {
  font-family: "Karla", sans-serif;
  font-size: 12px;
  line-height: 16px;
  color: #7d7d7d;
  display: block;
}

/* Blog Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.blog-pagination ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.blog-pagination li {
  margin: 0;
}

.blog-pagination a,
.blog-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #333333;
  text-decoration: none;
  font-family: "Karla", sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.blog-pagination a:hover {
  background: #37c0c0;
  border-color: #37c0c0;
  color: #ffffff;
}

.blog-pagination .current {
  background: #37c0c0;
  border-color: #37c0c0;
  color: #ffffff;
}

.blog-pagination .prev,
.blog-pagination .next {
  font-size: 20px;
  font-weight: 700;
}

/* Tablet */
@media screen and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .blog-archive-header {
    padding: 24px 20px 20px 32px;
  }

  .blog-archive-header .archive-title {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 20px;
  }

  .blog-archive-header .archive-description {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 0px;
  }

  .blog-grid-container {
    padding: 24px 16px 64px;
  }

  .blog-card {
    min-width: 343px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-card-title {
    font-size: 18px;
    line-height: 24px;
  }


  .blog-card-excerpt {
    font-size: 14px;
    line-height: 20px;
  }
}

/* ==========================================================================
     Layout - Pages
     ========================================================================== */

.social-nature-page-layout .site-main {
  max-width: 1170px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ==========================================================================
     Header & Footer - Hybrid System (Microfrontend + Fallback)
     ========================================================================== */

/* Ensure header and footer containers are visible */
.site-header,
.site-footer {
  width: 100%;
  position: relative;
}

/* Microfrontend containers */
#sn-navbar,
#sn-footer {
  display: block !important;
  width: 100%;
}

#sn-navbar a {
  text-decoration: none !important;
}

#sn-footer a,
#sn-footer p,
#sn-footer span,
#sn-footer h3 {
  font-weight: 600 !important;
  padding-bottom: 0 !important;
}

#sn-footer img {
  border-radius: 0px;
}

/* Sticky header */
.sn-sticky #sn-navbar {
  position: sticky !important;
}

/* ==========================================================================
     Content Formatting
     ========================================================================== */

/* .entry-content ul,
  .entry-content ol {
    margin: 0 0 1.5rem 0;
    padding-left: 2rem;
  }
  
  .entry-content ul {
    list-style-type: disc;
  }
  
  .entry-content ol {
    list-style-type: decimal;
  }
  
  .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 28px;
  } */

.entry-content table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

.entry-content table th,
.entry-content table td {
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.entry-content table th {
  background-color: #f5f5f5;
  font-weight: 700;
}

.entry-content code {
  background-color: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: monospace;
}

.entry-content pre {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.entry-content pre code {
  background-color: transparent;
  padding: 0;
}

.vc_column_container > .vc_column-inner {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

/* ==========================================================================
     WPBakery Page Builder Compatibility
     ========================================================================== */

.vc_row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ==========================================================================
     Utility Classes
     ========================================================================== */

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
     Mobile Responsive Styles
     ========================================================================== */

@media screen and (max-width: 768px) {
  /* Typography - Mobile */
  h1 {
    font-size: 24px;
    line-height: 32px;
  }

  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: 18px;
    line-height: 24px;
  }

  p {
    font-size: 16px;
    line-height: 24px;
  }

  blockquote {
    font-size: 16px;
    line-height: 24px;
    padding: 1rem 1.5rem;
  }

  /* Layout adjustments */
  .social-nature-post-layout .site-main,
  .social-nature-page-layout .site-main {
    padding: 1.5rem 1rem;
  }

  /* Image adjustments */
  .alignleft,
  .alignright {
    float: none;
    margin: 0 0 1.5rem 0;
    width: 100%;
  }

  /* Content formatting mobile */
  .entry-content ul,
  .entry-content ol {
    padding-left: 1.5rem;
  }

  .entry-content table {
    font-size: 14px;
  }

  .entry-content table th,
  .entry-content table td {
    padding: 0.5rem;
  }

  /* Blog Pagination */
  .blog-pagination {
    margin-top: 16px;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 24px;
    line-height: 32px;
  }

  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: 18px;
    line-height: 28px;
  }

  p {
    font-size: 16px;
    line-height: 24px;
  }

  .social-nature-post-layout .site-main,
  .social-nature-page-layout .site-main {
    padding: 24px 0rem;
  }

  .entry-header {
    padding: 0rem 1rem;
  }

  .entry-content {
    padding: 0rem 1rem;
  }
  .post-thumbnail img {
    border-radius: 0px !important;
  }

  .post-share-section {
    padding: 0rem 1rem;
    padding-bottom: 40px !important;
  }
}

/* ==========================================================================
     Post Navigation - DISABLED
     ========================================================================== */

/* Hide default WordPress post navigation */
.post-navigation,
.nav-links {
  display: none !important;
}

/* ==========================================================================
     Post Share Button
     ========================================================================== */

.post-share-section {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 80px;
  padding-top: 24px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: none;
  color: #08adcd;
  border: none;
  font-family: "Karla", sans-serif;
  cursor: pointer;
  transition: color 0.3s ease;
}

.share-button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.share-button span {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

/* ==========================================================================
     Print Styles
     ========================================================================== */

@media print {
  #sn-navbar,
  #sn-footer {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}
