/* =============================
   GLOBAL TYPOGRAPHY
============================= */
:root{
  --theme-font: "Outfit", sans-serif;
  --theme-color: #80a889;
  --theme-hoverColor: #000;
}

#single_blog_layout section, 
#blog_page section {
    padding: 0px !important;
}

#single_blog_layout a strong {
    background: none;
}

.blog-breadcrumbs nav {
    padding: 0px;
}

.blog-page h1,
.blog-page h2 {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    font-weight: 700;
    padding: 40px 0px 35px;
    margin: 0px;
    color: #333;
}

#blog_page {
    padding: 160px 7vw 2vw;
}

@media (max-width: 1024px) {
    #blog_page {
        padding: 150px 7vw 2vw;
    }
}

/* Desktop Default */
.blog-page h1, 
.blog-page h2  {
    font-size: 40px !important;
    line-height: 1.2;
}

/* =============================
   CARD GRID LAYOUT
============================= */
.featured-blog-wrap,
.recent-blog-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* =============================
   BLOG CARD DESIGN
============================= */
.featured-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: all .3s ease-in-out;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Blog Image */
.featured-post .featured-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* Content Area */
.featured-content {
    padding: 18px 18px 22px;
}

.featured-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.featured-content h4 a {
    text-decoration: none;
    font-size: 25px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}


.featured-excerpt {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    color: #000;
    margin-bottom: 18px;
    font-weight: 400;
}

/* =============================
   READ MORE BUTTON
============================= */

/* =============================
   READ MORE BUTTON – FIXED
============================= */
.read-more-btn{
    min-width:140px;
    padding:0 23px;
    height:50px;
    background:var(--theme-color);
    text-align:center;
    border-radius:5px;
    display:inline-block;
    font-size:15px;
    line-height:50px;
    font-weight:500;
    overflow:hidden;
    color:#000 !important;
}

/* Make text stay above animation */
.read-more-btn{
    z-index:1;
}

.read-more-btn span {
    position: relative;
    z-index: 1;
}

.read-more-btn{
    position:relative;
}

/* LEFT animation */
.read-more-btn:after{
    content:'';
    position:absolute;
    left:0;
    top:0;
    width:0;
    height:100%;
    background:#000;
    border-radius:5px 0 0 5px;
    transition:.4s;
    z-index:0;
}

/* RIGHT animation */
.read-more-btn:before{
    content:'';
    position:absolute;
    right:0;
    top:0;
    width:0;
    height:100%;
    background:#000;
    border-radius:0 5px 5px 0;
    transition:.4s;
    z-index:0;
}

/* Hover Effect */
.read-more-btn:hover:after{width:50%;}
.read-more-btn:hover:before{width:50%;}
.read-more-btn:hover{
    color:#fff !important;
}

/* =====================================
   PAGINATION – YELLOW SQUARE STYLE
===================================== */

/* Remove Previous & Next (already done but safe) */
.blog-pagination .prev,
.blog-pagination .next,
.blog-pagination .prev.page-numbers,
.blog-pagination .next.page-numbers{
  display: none !important;
}

/* Pagination container */
.blog-pagination{
  width:100%;
  text-align:center;
  margin-top:40px;
  padding-bottom:2em;
}

/* Page numbers square buttons */
.blog-pagination .page-numbers{
  display:inline-block;
  margin:0 6px;
  width: 40px;
  height: 40px;
  border-radius:6px;      /* change to 0px if you want sharp square */
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  border:2px solid transparent;
  transition:all .3s ease;
}

/* Hover */
.blog-pagination .page-numbers:hover{
  background:#000;
  color:#fff !important;
}

/* Active Page */
.blog-pagination .page-numbers.current{
  background:#000;
  color:#fff !important;
}



/* =============================
   RESPONSIVE BREAKPOINTS
============================= */

/* 1440px */
@media (max-width:1440px){
 .blog-page h1, .blog-page h2 { font-size: 42px; }
 .featured-post .featured-image img { height: 230px; }
}


/* 1024px */
@media (max-width:1024px){
 .featured-blog-wrap,
 .recent-blog-wrap{
    grid-template-columns: repeat(2,1fr);
 }

 .blog-page h1 { font-size: 36px; }
 .blog-page h2 { font-size: 36px; }

 .featured-post .featured-image img { height: 220px; }
}

/* Tablet - 991px */
@media (max-width:991px){
 .blog-page h1 { font-size: 34px; }
 .blog-page h2 { font-size: 24px; }

}


/* 768px */
@media (max-width:768px){
 .featured-blog-wrap,
 .recent-blog-wrap{
    grid-template-columns: 1fr;
 }

 .blog-page h1 { font-size: 32px; }
 .blog-page h2 { font-size: 32px; }

 .featured-post { width: 100%; }
}

/* 576px */
@media (max-width:576px){
 .blog-page h1 { font-size: 28px; }
 .blog-page h2 { font-size: 20px; }

 .featured-content {
    padding: 15px;
 }

 .featured-post .featured-image img {
    height: 200px;
 }
}

/* 480px */
@media (max-width:480px){
 .blog-page h1 { font-size: 26px; }
 .blog-page h2 { font-size: 19px; }

 .read-more-btn {
    min-width: 120px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
 }
}


/* ============================= */
/* SINGLE BLOG PAGE DESIGN */
/* ============================= */
 
#single_blog_layout {
    padding: 180px 14vw 0px;
}

.blog-breadcrumbs p {
    font-size: 18px;
}

#single_blog_layout h1, 
#single_blog_layout h2, 
#single_blog_layout h3, 
#single_blog_layout h4, 
#single_blog_layout h5, 
#single_blog_layout h6 {
    color: #000;
}

/* =========================================
   SINGLE BLOG PAGE – Caminschi Dentistry
   ========================================= */

#single_blog_layout {
    width: 100%;
    max-width: 100%;
    padding: 160px 14vw 0px;
    margin: 0;
    background:#fff;
}

/* ------------------
   BREADCRUMBS
------------------ */
.blog-breadcrumbs {
    max-width: 1100px;
    /* margin: 0 auto 10px; */
}

.blog-breadcrumbs a {
    color:#000;
    font-weight:500;
}

.blog-breadcrumbs a:hover {
    color:var(--theme-color);
}

/* ------------------
   TITLE
------------------ */
.blog-title {
    max-width: 1100px;
    margin: 0 auto 15px;
    font-size: 40px;
    line-height: 1.3;
    font-weight: 700;
    color:#000;
}

/* ------------------
   FEATURED IMAGE
------------------ */
.blog-featured-image {
    max-width: 1100px;
    margin: 30px auto;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid var(--theme-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ------------------
   HEADINGS
------------------ */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    color:#000;
    margin-top:35px;
    margin-bottom:12px;
    font-weight:700;
}

.blog-content h2 {
    font-size:32px;
}

.blog-content h3 {
    font-size:26px;
}

.blog-content h4 {
    font-size:22px;
}

/* ------------------
   LISTS
------------------ */
.blog-content ul,
.blog-content ol {
    margin:15px 0 20px 25px;
}

#single_blog_layout ol {
    padding: 0px;
    margin: 0px;
}

#single_blog_layout ol li {
    padding-left: 27px;
}


.blog-content li {
    margin-bottom:10px;
}

/* ------------------
   IMAGES INSIDE CONTENT
------------------ */
.blog-content img {
    max-width:100%;
    height:auto;
    border-radius:20px;
    border:2px solid var(--theme-color);
    margin:25px 25px;
}

/* ------------------
   QUOTES
------------------ */
.blog-content blockquote {
    background:#fffaea;
    border-left:6px solid var(--theme-color);
    padding:15px 18px;
    margin:20px 0;
    border-radius:10px;
}

/* ------------------
   TABLES
------------------ */
.blog-content table {
    width:100%;
    border-collapse:collapse;
    margin:25px 0;
}

.blog-content table,
.blog-content td,
.blog-content th {
    border:1px solid #e3e3e3;
}

.blog-content th {
    background:#000;
    color:var(--theme-color);
    padding:10px;
}

.blog-content td {
    padding:10px;
}

/* ------------------
   RESPONSIVE
------------------ */
@media (max-width:1024px){
    #single_blog_layout {
        padding: 130px 6vw 0px;
    }

    .blog-title{
        font-size:32px;
    }
}

@media (max-width:768px){
    #single_blog_layout {
        padding: 120px 20px 0px;
    }

    .blog-title{
        font-size:26px;
    }

    .blog-content{
        font-size:16px;
    }
}

/* ============================= */
/* SINGLE BLOG PAGE DESIGN */
/* ============================= */
 
#single_blog_layout {
    padding: 180px 14vw 0px;
}

.blog-breadcrumbs p {
    font-size: 18px;
}

#single_blog_layout h1, 
#single_blog_layout h2, 
#single_blog_layout h3, 
#single_blog_layout h4, 
#single_blog_layout h5, 
#single_blog_layout h6 {
    color: #000;
}

/* =========================================
   SINGLE BLOG PAGE – Caminschi Dentistry
   ========================================= */

#single_blog_layout {
    width: 100%;
    max-width: 100%;
    padding: 160px 14vw 0px;
    margin: 0;
    background:#fff;
}

/* ------------------
   BREADCRUMBS
------------------ */
.blog-breadcrumbs {
    max-width: 1100px;
    margin: 0 auto 10px;
}

.blog-breadcrumbs a {
    color:#000;
    font-weight:500;
}

.blog-breadcrumbs a:hover {
    color:var(--theme-color);
}

/* ------------------
   TITLE
------------------ */
.blog-title {
    max-width: 1100px;
    margin: 0 auto 15px;
    font-size: 40px;
    line-height: 1.3;
    font-weight: 700;
    color:#000;
}

/* ------------------
   FEATURED IMAGE
------------------ */
.blog-featured-image {
    max-width: 1100px;
    margin: 30px auto;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid var(--theme-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ------------------
   CONTENT
------------------ */
.blog-content {
    max-width: 1100px;
    margin: 30px auto 100px;
    font-size: 18px;
    line-height: 1.9;
    color:#000;
}

.blog-content p {
    margin-bottom:18px;
}

/* Links */
.blog-content a {
    color:var(--theme-color);
    font-weight:600;
    text-decoration:none;
}

.blog-content a:hover {
    color:#000;
}

/* ------------------
   HEADINGS
------------------ */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    color:#000;
    margin-top:35px;
    margin-bottom:12px;
    font-weight:700;
}

.blog-content h2 { font-size:32px; }
.blog-content h3 { font-size:26px; }
.blog-content h4 { font-size:22px; }

/* ------------------
   LISTS
------------------ */
.blog-content ul,
.blog-content ol {
    margin:15px 0 20px 25px;
}

.blog-content li {
    margin-bottom:10px;
}

/* ------------------
   IMAGES INSIDE CONTENT
------------------ */
.blog-content img {
    max-width:100%;
    height:auto;
    border-radius:20px;
    border:2px solid var(--theme-color);
    margin:25px 25px;
}

/* ------------------
   QUOTES
------------------ */
.blog-content blockquote {
    background:#fffaea;
    border-left:6px solid var(--theme-color);
    padding:15px 18px;
    margin:20px 0;
    border-radius:10px;
}

/* ------------------
   TABLES
------------------ */
.blog-content table {
    width:100%;
    border-collapse:collapse;
    margin:25px 0;
}

.blog-content table,
.blog-content td,
.blog-content th {
    border:1px solid #e3e3e3;
}

.blog-content th {
    background:#000;
    color:var(--theme-color);
    padding:10px;
}

.blog-content td {
    padding:10px;
}

/* ------------------
   RESPONSIVE BASE
------------------ */
@media (max-width:1024px){
    #single_blog_layout {
        padding: 130px 6vw 0px;
    }

    .blog-title{
        font-size:32px;
    }
}

@media (max-width:768px){
    #single_blog_layout {
        padding: 120px 20px 0px;
    }

    .blog-title{
        font-size:26px;
    }

    .blog-content{
        font-size:16px;
    }
}


/* =========================================
   SINGLE BLOG – ACCORDION
========================================= */

#single_blog_layout .wp-block-details {
  border: 2px solid var(--theme-color);
  border-radius: 18px;
  margin-bottom: 18px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* Header */
#single_blog_layout .wp-block-details summary {
  cursor: pointer;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  list-style: none;
  background: #fff8e0;
  position: relative;
  border-radius: 18px 18px 0 0;
  transition: all .3s ease;
}

#single_blog_layout .wp-block-details summary::-webkit-details-marker {
  display: none;
}

#single_blog_layout .wp-block-details summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: #000;
  font-weight: 800;
  transition: all .3s ease;
}

#single_blog_layout .wp-block-details summary:hover {
  background: var(--theme-color);
  color:#000;
}

/* OPEN */
#single_blog_layout .wp-block-details[open] summary {
  background:#000;
  color:var(--theme-color);
}

#single_blog_layout .wp-block-details[open] summary::after {
  content:"-";
  color:var(--theme-color);
  transform: translateY(-50%) rotate(180deg);
}

/* Body */
#single_blog_layout .wp-block-details *:not(summary) {
  padding: 20px 18px;
  font-size: 16px;
  color:#000;
  line-height:1.7;
  margin:0;
}

/* Animation */
#single_blog_layout details.wp-block-details[open] > *:not(summary) {
  animation: accordionFade .25s ease-in;
}

@keyframes accordionFade {
  from { opacity:0; transform: translateY(-4px);}
  to { opacity:1; transform: translateY(0);}
}


/* ==============================
   ACCORDION RESPONSIVE
============================== */
@media (max-width:1199px){
  #single_blog_layout .wp-block-details { border-radius:16px; }
  #single_blog_layout .wp-block-details summary { padding:16px 18px; font-size:17px; }
  #single_blog_layout .wp-block-details summary::after { right:18px; font-size:24px; }
  #single_blog_layout .wp-block-details *:not(summary){ padding:16px 18px; font-size:15px; }
}

@media(max-width:1023px){
  #single_blog_layout .wp-block-details summary{ font-size:16px; padding:16px; }
  #single_blog_layout .wp-block-details summary::after{ right:16px; }
  #single_blog_layout .wp-block-details { border-radius:14px; }
}

@media(max-width:768px){
  #single_blog_layout .wp-block-details{ margin-bottom:14px; }
  #single_blog_layout .wp-block-details summary{ padding:14px 16px; font-size:16px; }
  #single_blog_layout .wp-block-details summary::after{ right:14px; font-size:22px; }
  #single_blog_layout .wp-block-details *:not(summary){ padding:16px 14px; font-size:15px; }
}

@media(max-width:639px){
  #single_blog_layout .wp-block-details summary{ padding:14px; border-radius:12px 12px 0 0; }
  #single_blog_layout .wp-block-details{ border-radius:12px; }
}

@media(max-width:479px){
  #single_blog_layout .wp-block-details summary{ font-size:15px; padding:12px 14px; }
  #single_blog_layout .wp-block-details summary::after{ font-size:20px; right:12px; }
  #single_blog_layout .wp-block-details *:not(summary){ padding: 14px 12px; font-size:14px; }
}


/* =========================================
   RESPONSIVE TYPOGRAPHY FIX
========================================= */

/* 1024 and below */
@media (max-width:1024px){

    .blog-title{ font-size: 30px; }

    .blog-content h2{ font-size: 26px; }
    .blog-content h3{ font-size: 22px; }
    .blog-content h4{ font-size: 20px; }

    .blog-content,
    .blog-content p,
    .blog-content li{
        font-size: 15px;
        line-height: 1.8;
    }

    .blog-content table,
    .blog-content table td,
    .blog-content table th{
        font-size: 14px;
    }
}

/* 768 and below */
@media (max-width:768px){

    .blog-title{ font-size: 26px; }

    .blog-content h2{ font-size: 22px; }
    .blog-content h3{ font-size: 20px; }
    .blog-content h4{ font-size: 18px; }

    .blog-content,
    .blog-content p,
    .blog-content li{
        font-size: 15px;
    }

    .blog-content table,
    .blog-content table td,
    .blog-content table th{
        font-size: 13px;
    }
}

/* 639 and below */
@media (max-width:639px){

    .blog-title{ font-size: 24px; }

    .blog-content h2{ font-size: 20px; }
    .blog-content h3{ font-size: 18px; }
    .blog-content h4{ font-size: 17px; }

    .blog-content,
    .blog-content p,
    .blog-content li{
        font-size: 14px;
    }

    .blog-content table,
    .blog-content table td,
    .blog-content table th{
        font-size: 12px;
    }
}

/* 479 and below */
@media (max-width:479px){

    .blog-title{ font-size: 22px; }

    .blog-content h2{ font-size: 18px; }
    .blog-content h3{ font-size: 17px; }
    .blog-content h4{ font-size: 16px; }

    .blog-content,
    .blog-content p,
    .blog-content li{
        font-size: 14px;
    }

    .blog-content table,
    .blog-content table td,
    .blog-content table th{
        font-size: 12px;
    }
}
