/*
Theme Name: Arranged Sugar
Author: the WordPress team
Description: A theme for blogs of arranged sugar.
*/

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/montserrat/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/montserrat/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/montserrat/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/open-sans/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/open-sans/OpenSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/open-sans/OpenSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

body {
  font-family: 'Montserrat';
  background: #FAFAFA;
}

/* Container - max 1400px for large screens */
.container {
  max-width: 1400px;
  margin: 0 auto;
  /* padding: 0 20px; */
}

/* Header */
.site-header {
  background: #000000;
  color: #FAFAFA;
  position: sticky;   /* modern way */
  top: 0;             /* stick to top */
  z-index: 1000;      /* stay above other elements */
  width: 100%;
  padding: 0 20px;
}

.header-inner {
  display: block;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 20px 0;
}

a.back-to-home{
    font-family: 'Open Sans';
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: #000000;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin: 16px 0 5px 0;
}
a.back-to-home:hover{
  color: #CBB07B;
}

/* Logo */
.site-logo img {
  max-height: 50px;
  height: auto;
  max-width: 260px;
}

/* Navigation */
.main-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-nav .nav-list li a {
  text-decoration: none;
  color: #FAFAFA;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav .nav-list li a:hover {
  color: #0073aa; /* WP blue accent */
}

/* Responsive - collapse nav on mobile */
@media (max-width: 991px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    text-align: center;
    padding: 15px 0;
  }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}
/* Footer */
.site-footer {
  background: #000;
  color: #fafafa;
  padding: 50px 0 20px;
  font-family: 'Open Sans';
}

.site-footer .blog-container{
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 213px;
  margin-bottom: 30px;
}

.footer-logo img {
  max-height: 50px;
  height: auto;
  max-width: 260px;
  display: block;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 20px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li a {
  color: #fafafa;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

.footer-menu li a:hover {
  color: #d4af37;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  color: #fafafa;
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
}

.footer-social a {
  margin-left: 15px;
  color: #fafafa;
  font-size: 18px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #d4af37;
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
}

@media (max-width: 768px) {
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
}



/* Each menu item */
.footer-widget .menu li {
  padding: 5px 0;
  list-style: none;
}

.footer-widget .menu li a {
  color: #FAFAFA;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
}

.footer-widget .menu li a:hover {
  text-decoration: underline;
}

/* Responsive: collapse into 2 columns */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 31px;
    align-items: flex-start;
  } 

  .footer-menu {
    grid-template-columns: repeat(2, auto);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    align-items: start;
  }
  .footer-social a:first-child {
    margin-left: 0;
  }
   .footer-widget .menu li{
    padding: 10px 0;
  }
  .footer-widgets .footer-column{
    padding-right: 20px;
  }
  .site-logo img{
    max-width: 200px;
  }
}
/* ===========================
   BLOG ARCHIVE STYLES
=========================== */
.blog-container {
  max-width: 1100px;
  margin: 40px auto;
}

.archive-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}
.blog-single-title {
  text-align: left;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 24px;
}
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  display: flex;
  gap: 30px;
  background: #FFFFFF;
  border: 1px solid #0000001A;
  border-radius: 16px;
  padding: 16px;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-card-image img {
  max-width: 300px;
  display: block;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.blog-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-title {
  margin-bottom: 10px;
}
.site-footer{
  padding: 40px 16px 20px 16px;
}
.blog-card-title a {
  text-decoration: none;
  color: #000000;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
}

.blog-card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;   /* limit to 2 lines */
  overflow: hidden;        /* hide the rest */
  text-overflow: ellipsis; /* add "..." */
  margin-bottom: 20px;
  font-family: 'Open Sans';
  font-weight: 400;
  font-size: 16px;
  color: #666666;
  line-height: 26px;
}

.blog-card-readmore {
  color: #CBB07B;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 100%;
}

.blog-card-readmore:hover {
  text-decoration: underline;
}

/* Pagination */
.pagination {
  margin-top: 30px;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
}

.pagination .current {
  background: #000;
  color: #fff;
  border-color: #000;
}

.blog-card.blog-card-single{
    flex-direction: column;
    padding: 40px;
}

.blog-card.blog-card-single .blog-card-image{
    width: 100%;
    max-height: none;
}
.blog-card.blog-card-single .blog-card-image img{
    max-width: 100%;
    height: auto;
    width: 100%;
    max-height: 680px;
}

.blog-card.blog-card-single .blog-card-content h1,
.blog-card.blog-card-single .blog-card-content h2,
.blog-card.blog-card-single .blog-card-content h3, 
.blog-card.blog-card-single .blog-card-content h4, 
.blog-card.blog-card-single .blog-card-content h5, 
.blog-card.blog-card-single .blog-card-content h6 {
    font-family: 'Montserrat';
    font-weight: 700;
    padding: 0 0 20px 0;
    color: #000000;
}

.blog-card.blog-card-single .blog-card-content p{
    font-family: 'Open Sans';
    font-weight: 400;
    font-size: 18px;
    color: #666666;
    line-height: 30px;
    padding: 0 0 20px 0;
}
.blog-card.blog-card-single .blog-card-content h2,
.blog-card.blog-card-single .blog-card-content h3, 
.blog-card.blog-card-single .blog-card-content h4, 
.blog-card.blog-card-single .blog-card-content h5, 
.blog-card.blog-card-single .blog-card-content h6 {
   font-size: 20px;
   line-height: 30px;
}

.blog-card.blog-card-single .blog-card-content h1{
    font-size: 30px;
    line-height: 100%;
}

.blog-card.blog-card-single .blog-card-content ul,
.blog-card.blog-card-single .blog-card-content ol {
    font-family: 'Open Sans';
    font-weight: 400;
    font-size: 18px;
    color: #666666;
    line-height: 30px;
    padding-left: 20px; 
    margin: 0 0 20px 0;
    list-style-position: inside;
}

.blog-card.blog-card-single .blog-card-content ul li,
.blog-card.blog-card-single .blog-card-content ol li {
    margin-bottom: 10px;
}

.site-main.blog-archive{
  padding: 0 16px;
}

.single.single-post .blog-container{
  margin: 30px auto;
}

@media (max-width: 767px) {
  .blog-card{
    flex-direction: column;
    gap: 16px;
  }
  .blog-card-image img{
    max-width: 100% !important;
    max-height: 251px !important;
  }
  .blog-card-title a{
    font-size: 16px;
    line-height: 26px;
  }
  .blog-container{
    margin: 20px auto;
  }
  .archive-title{
    font-size: 36px;
    margin-bottom: 20px;
  }
  .blog-card.blog-card-single{
    padding: 16px;
  }
  .blog-single-title{
   text-align: center;
    font-size: 20px;
  }
  .blog-card.blog-card-single .blog-card-content h1,
  .blog-card.blog-card-single .blog-card-content h2,
  .blog-card.blog-card-single .blog-card-content h3, 
  .blog-card.blog-card-single .blog-card-content h4, 
  .blog-card.blog-card-single .blog-card-content h5, 
  .blog-card.blog-card-single .blog-card-content h6 {
    padding: 10px 0 10px 0;
}
  .blog-card.blog-card-single .blog-card-content h1{
      font-size: 20px;
  }
  .blog-card.blog-card-single .blog-card-content p{
      font-size: 16px;
  }

  .single.single-post .blog-container{
    margin: 15px auto;
  }
}

@media screen and (max-width: 479px) {
  .blog-container .blog-single-title{
     display: none;
  }
  .header-inner-mobile .blog-single-title{
      display: block;
      margin-bottom: 0;
      margin-top: 10px;
  }
}
@media screen and (min-width: 480px) {
 .blog-container .blog-single-title{
     display: block;
  }
.header-inner-mobile .blog-single-title{
    display: none;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .blog-card.blog-card-single .blog-card-image img{
    max-height: 480px !important;
  }
  .blog-card.blog-card-single{
    padding: 24px;
  }
  .single-post .blog-container{
    margin: 30px auto;
  }
}
.header-inner-mobile{
  display: flex;
  align-items: center;
  gap: 15%;
}

/* ===========================
   404 PAGE STYLES
=========================== */
.page-404 {
    text-align: center;
    padding: 100px 20px;
    background: #FFFFFF;
    color: #fafafa;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    flex: 1;
    display: flex;
}
.page-404 h1 {
    font-size: 3rem;
    line-height: 1;
    font-family: 'poppins', sans-serif;
    margin-bottom: 1rem;
    padding:0;
    font-weight: 700;
    color: rgb(203 176 123);
}
.page-404 p {
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin-bottom: 1rem;
    color: rgb(102 102 102);
}
.page-404 a {
    display: inline-block;
    padding:  0.75rem 1.5rem;
    background-image: linear-gradient(270deg, #cbb07b, #eed9b1);
    color: rgb(0 0 0);
    font-weight: bold;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: 0.3s;
}
body.error404{
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column; 
}