/* ==========================================================
   OM DATTA DENTAL CLINIC
   BLOG LISTING PAGE
   BLACK PREMIUM THEME
========================================================== */


.blog-page{

    background:#020304;
    color:#ffffff;
    overflow-x:hidden;

}




.blog-container{

    width:min(1300px,92%);
    margin:auto;

}





.blog-page h1,
.blog-page h2,
.blog-page h3{


}



.blog-page p,
.blog-page li{



    color:#a2a7ae;

    line-height:1.8;

}








/* ==========================================================
BREADCRUMB
========================================================== */


.blog-breadcrumb{

    padding-top:120px;

    display:flex;

    gap:12px;

    color:#777;

    font-size:13px;

}



.blog-breadcrumb a{

    color:#aaa;

}



.blog-breadcrumb span:last-child{

    color:#8fe8f8;

}









/* ==========================================================
BLOG HERO
========================================================== */


.blog-hero{

    position:relative;

    padding-bottom:80px;

}





.blog-hero::before{


    content:"";


    position:absolute;


    width:650px;


    height:650px;


    right:-200px;


    top:100px;


    background:

    radial-gradient(
        circle,
        rgba(81,199,223,.25),
        transparent 65%
    );


    filter:blur(70px);


}







.blog-heading{


    max-width:800px;


    padding-top:90px;


}




.blog-heading span{


    color:#8fe8f8;


    letter-spacing:4px;


    font-size:12px;


}





.blog-heading h1{


    font-size:

    clamp(
        65px,
        8vw,
        110px
    );


    line-height:.9;


    letter-spacing:-2px;


    margin:30px 0;


}




.blog-heading p{


    max-width:600px;


    font-size:18px;


}








/* ==========================================================
BLOG SECTION
========================================================== */


.blog-section{


    padding:60px 0 120px;


}




.blog-layout{


    display:grid;


    grid-template-columns:

    1fr 330px;


    gap:50px;


}







/* ==========================================================
FEATURE BLOG
========================================================== */


.featured-blog{


    display:grid;


    grid-template-columns:

    1fr 1fr;


    overflow:hidden;


}








.blog-card{


    background:

    rgba(
        255,
        255,
        255,
        .05
    );


    border:

    1px solid rgba(
        143,
        232,
        248,
        .15
    );


    border-radius:28px;


    overflow:hidden;


    transition:.4s;


}




.blog-card:hover{


    transform:translateY(-8px);


    border-color:#51c7df;


}







.blog-image{


    height:230px;


    overflow:hidden;


}




.blog-image img{


    width:100%;


    height:100%;


    object-fit:cover;


    transition:.5s;


}





.blog-card:hover img{


    transform:scale(1.05);


}







.featured-blog .blog-image{


    height:100%;


}








.blog-card-content{


    padding:30px;


}





.blog-card-content span{


    color:#8fe8f8;


    font-size:11px;


    letter-spacing:3px;


}






.blog-card-content h2{


    font-size:

    clamp(
        35px,
        4vw,
        55px
    );


    line-height:1;


    margin:20px 0;


}





.blog-card-content h3{


    font-size:34px;


    line-height:1;


    margin:20px 0;


}







.blog-meta{


    color:#777;


    font-size:13px;


    margin:20px 0;


}






.blog-card-content a{


    display:inline-block;


    padding:13px 28px;


    border-radius:40px;


    background:

    linear-gradient(
        96deg,
        #8fe8f8,
        #51c7df,
        #2c7f92
    );


    color:#001015;


    font-weight:700;


}









/* ==========================================================
SMALL BLOG GRID
========================================================== */


.blog-grid{


    display:grid;


    grid-template-columns:

    repeat(2,1fr);


    gap:30px;


    margin-top:30px;


}









/* ==========================================================
SIDEBAR
========================================================== */


.blog-sidebar{


    position:relative;


}



.sidebar-box{


    padding:30px;


    border-radius:25px;


    background:

    rgba(
        255,
        255,
        255,
        .05
    );


    border:

    1px solid rgba(
        255,
        255,
        255,
        .12
    );


    margin-bottom:25px;


}





.sidebar-box h3{


    font-size:32px;


    margin-bottom:25px;


}







.search-box{


    display:flex;


    border:

    1px solid rgba(
        255,
        255,
        255,
        .2
    );


    border-radius:50px;


    overflow:hidden;


}



.search-box input{


    flex:1;


    padding:15px;


    background:none;


    border:none;


    color:white;


    outline:none;


}




.search-box button{


    width:50px;


    border:none;


    background:

    #51c7df;


    color:#001015;


}







.sidebar-box ul{


    list-style:none;


    padding:0;


}





.sidebar-box li{


    padding:15px 0;


    border-bottom:

    1px solid rgba(
        255,
        255,
        255,
        .1
    );


    color:#aaa;


}





.sidebar-box li:hover{


    color:#8fe8f8;


}








/* ==========================================================
RECENT POSTS
========================================================== */


.recent-post{


    display:flex;


    gap:15px;


    margin-bottom:20px;


}



.recent-post img{


    width:140px;


    height:70px;


    border-radius:12px;


    object-fit:cover;


}




.recent-post p{


    font-size:15px;


    margin:0;


    color:white;


}




.recent-post span{


    font-size:12px;


    color:#777;


}








/* ==========================================================
CTA
========================================================== */


.blog-cta{


    padding:120px 20px;


    text-align:center;


    background:

    linear-gradient(
        120deg,
        rgba(81,199,223,.12),
        transparent
    );


}





.blog-cta h2{


    font-size:

    clamp(
        50px,
        7vw,
        90px
    );


    line-height:.95;


}




.blog-cta a{


    display:inline-block;


    margin-top:35px;


    padding:18px 45px;


    border-radius:50px;


    background:white;


    color:black;


}









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


@media(max-width:1100px){


.blog-layout{


    grid-template-columns:1fr;


}




.blog-sidebar{


    display:grid;


    grid-template-columns:

    repeat(3,1fr);


    gap:20px;


}



.featured-blog{


    grid-template-columns:1fr;


}



.featured-blog .blog-image{


    height:350px;


}


}







@media(max-width:768px){



.blog-breadcrumb{


    padding-top:90px;


}




.blog-heading{


    padding-top:60px;


}



.blog-grid{


    grid-template-columns:1fr;


}



.blog-sidebar{


    display:block;


}



.blog-heading h1{


    font-size:58px;


}



.blog-card-content h2{


    font-size:38px;


}



}







@media(max-width:480px){


.blog-container{


    width:90%;


}



.blog-heading h1{


    font-size:48px;


}



.blog-card-content{


    padding:22px;


}



}


/* =================================
BLOG PAGINATION FIX
================================= */


.blog-pagination{

    width:100%;

    display:flex !important;

    justify-content:center;

    align-items:center;

    gap:12px;

    margin:70px 0 40px;

}




.blog-pagination a,
.blog-pagination span{


    width:42px;

    height:42px;


    display:flex !important;

    align-items:center;

    justify-content:center;


    border-radius:50%;


    text-decoration:none;


    font-size:15px;


    color:#ffffff;


    background:rgba(255,255,255,0.05);


    border:1px solid rgba(143,232,248,0.25);


    transition:.3s;


}





.blog-pagination a:hover{


    border-color:#8fe8f8;

    color:#8fe8f8;


}




.blog-pagination .active{


    background:

    linear-gradient(
        96deg,
        #8fe8f8,
        #51c7df,
        #2c7f92
    );


    color:#000;


    font-weight:700;


}




.blog-pagination a:first-child,
.blog-pagination a:last-child{


    font-size:20px;


}






/* =====================================
HEADER
===================================== */


.header{

    position:relative;

    padding:25px 0;

    background:#020405;

}



.header-inner{

    display:flex;

    align-items:center;

    justify-content:space-between;

}



.logo{

    font-size:22px;

    font-weight:700;

    letter-spacing:2px;

}



.logo span{

    display:block;

    font-size:10px;

    color:#8fe8f8;

    letter-spacing:3px;

}




.header nav{

    display:flex;

    gap:35px;

}



.header nav a{

    color:#aaa;

    transition:.3s;

}



.header nav a:hover,
.header nav .active{

    color:#8fe8f8;

}




.header-btn{

    padding:13px 25px;

    border-radius:30px;

    background:

    linear-gradient(
        96deg,
        #8fe8f8,
        #51c7df
    );

    color:#000;

    font-weight:600;

}









/* =====================================
BLOG HERO
===================================== */


.bd-hero{

    padding:150px 0 50px;

}





.breadcrumb{

    display:flex;

    gap:12px;

    color:#777;

    font-size:14px;

    margin-bottom:50px;

}



.breadcrumb a:hover{

    color:#8fe8f8;

}





.category{

    display:inline-block;

    padding:8px 18px;

    border-radius:30px;

    background:

    rgba(143,232,248,.1);


    color:#8fe8f8;


    font-size:12px;

    letter-spacing:2px;

    margin-bottom:25px;

}






.bd-hero h1{

    max-width:900px;

    font-size:64px;

    line-height:1.1;

    font-weight:800;

}



.bd-hero h1::first-line{

    color:#fff;

}





.intro{

    max-width:700px;

    margin-top:30px;

    color:#9b9b9b;

    font-size:18px;

    line-height:1.8;

}





.meta{

    margin-top:30px;

    display:flex;

    gap:15px;

    color:#aaa;

}









/* =====================================
FEATURE IMAGE
===================================== */


.feature-image{

    padding:40px 0;

}



.feature-image img{

    width:100%;

    height:550px;

    object-fit:cover;

    border-radius:35px;

    border:1px solid rgba(143,232,248,.2);

}









/* =====================================
ARTICLE SECTION
===================================== */


.article-section{

    padding:70px 0;

}



.article-layout{

    display:grid;

    grid-template-columns:

    minmax(0,1fr)
    330px;


    gap:50px;

}





.article-content{

    font-size:17px;

    line-height:1.9;

    color:#d0d0d0;

}



.article-content h2{

    margin:45px 0 20px;

    font-size:34px;

    color:#fff;

}



.article-content p{

    margin-bottom:20px;

}




.article-content img{

    width:100%;

    border-radius:25px;

    margin:30px 0;

}






.article-content ul{

    margin:20px 0;

    padding-left:20px;

}



.article-content li{

    margin-bottom:10px;

}









/* =====================================
BENEFITS
===================================== */


.benefit-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

    margin:30px 0;

}



.benefit-grid div{


    padding:25px;


    border-radius:20px;


    background:

    rgba(255,255,255,.04);


    border:1px solid rgba(255,255,255,.08);

}









/* =====================================
AUTHOR BOX
===================================== */


.author-box{


    margin-top:60px;


    padding:25px;


    display:flex;

    gap:20px;


    border-radius:25px;


    background:

    rgba(255,255,255,.05);


}



.author-box img{


    width:80px;

    height:80px;

    border-radius:50%;

    object-fit:cover;


}









/* =====================================
SIDEBAR
===================================== */


.sidebar{

    position:relative;

}



.side-card{

    padding:30px;


    margin-bottom:25px;


    border-radius:25px;


    background:

    rgba(255,255,255,.04);


    border:

    1px solid rgba(255,255,255,.08);


}





.side-card h3{


    font-size:20px;

    margin-bottom:25px;

}




.side-card li{

    list-style:none;

    padding:12px 0;

    color:#aaa;

    border-bottom:1px solid rgba(255,255,255,.05);

}









/* RECENT */


.recent{


    display:flex;

    gap:15px;

    margin-bottom:20px;

}



.recent img{


    width:70px;

    height:60px;


    border-radius:12px;

    object-fit:cover;


}









/* APPOINTMENT CARD */


.appointment-card{


    padding:35px;


    border-radius:30px;


    background:

    linear-gradient(
        145deg,
        #0b2027,
        #020405
    );


    border:1px solid rgba(143,232,248,.25);


}



.appointment-card h3{

    font-size:24px;

    margin-bottom:15px;

}



.appointment-card a{


    display:inline-block;

    margin-top:20px;

    padding:14px 25px;


    border-radius:30px;


    background:#8fe8f8;


    color:#000;

}









/* =====================================
RELATED BLOG
===================================== */


.related{

    padding:80px 0;

}



.related h2{


    font-size:40px;

    margin-bottom:40px;

}




.related-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}



.related-card{


    background:

    rgba(255,255,255,.05);


    border-radius:25px;

    overflow:hidden;


}



.related-card img{


    width:100%;

    height:220px;


    object-fit:cover;


}



.related-card h3{


    padding:20px;


}



.related-card a{


    padding:0 20px 25px;

    display:block;

    color:#8fe8f8;


}









/* =====================================
CTA
===================================== */


.cta{

    padding:80px 20px;

    text-align:center;


    background:

    linear-gradient(
        180deg,
        #020405,
        #07151a
    );


}



.cta h2{


    font-size:42px;

}



.cta p{


    margin:20px;

    color:#aaa;

}



.cta a{


    display:inline-block;

    padding:15px 35px;


    border-radius:40px;


    background:#8fe8f8;


    color:#000;


}









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



@media(max-width:900px){



.header nav{

    display:none;

}



.bd-hero h1{

    font-size:42px;

}



.article-layout{

    grid-template-columns:1fr;

}



.sidebar{

    order:-1;

}



.related-grid{

    grid-template-columns:1fr;

}



.feature-image img{

    height:350px;

}



}



@media(max-width:600px){



.bd-hero{

    padding-top:40px;

}



.bd-hero h1{

    font-size:32px;

}



.meta{

    flex-direction:column;

}



.benefit-grid{

    grid-template-columns:1fr;

}



.feature-image img{

    height:250px;

}



}



/* =================================
TABLE OF CONTENTS
================================= */


.toc-box{


    background:#ffffff;


    border:1px solid #e2e8f0;


    border-radius:16px;


    overflow:hidden;


    margin-bottom:32px;


    box-shadow:
    0 5px 20px rgba(0,0,0,.06);


}







.toc-header{


    background:#f8fafc;


    border-bottom:1px solid #e2e8f0;


    padding:16px 20px;


    display:flex;


    align-items:center;


    justify-content:space-between;


}






.toc-title{


    display:flex;


    align-items:center;


    gap:10px;


}



.toc-title strong{


    font-size:15px;


    color:#0f172a;


    font-weight:700;


}





.toc-toggle{


    background:none;


    border:1px solid #e2e8f0;


    border-radius:8px;


    cursor:pointer;


    padding:5px 14px;


    font-size:12px;


    color:#6366f1;


    font-weight:600;


}






.toc-list{


    padding:12px 20px;


}






.toc-item{


    display:flex;


    align-items:baseline;


    gap:8px;


    padding:5px 0;


    border-bottom:1px solid #f8fafc;


    padding-left:var(--toc-indent);


}







.toc-main-item .toc-link-item{


    font-size:14px;


    font-weight:600;


    color:#1e293b;


}






.toc-sub-item .toc-link-item{


    font-size:13px;


    font-weight:400;


    color:#475569;


}






.toc-number{


    font-size:11px;


    color:#94a3b8;


    min-width:20px;


    text-align:right;


}







.toc-link-item{


    text-decoration:none;


    line-height:1.5;


    border-bottom:1px dashed transparent;


    transition:.3s;


}





.toc-link-item:hover{


    color:#6366f1;


    border-bottom-color:#6366f1;


}


/* =================================
AUTHOR BOX
================================= */


.author-box{


display:flex;

gap:25px;

align-items:flex-start;


background:

rgba(255,255,255,0.04);


border:

1px solid rgba(255,255,255,0.1);


border-radius:25px;


padding:30px;


margin-top:50px;


}





/* Avatar */


.author-avatar{


flex-shrink:0;


}




.author-avatar img,
.author-placeholder{


width:80px;

height:80px;


border-radius:50%;


object-fit:cover;


}





.author-avatar img{


border:3px solid #8fe8f8;


}




.author-placeholder{


display:flex;


align-items:center;


justify-content:center;


background:#111;


color:#fff;


font-size:28px;


font-weight:800;


}









/* Content */


.author-content{


flex:1;


}




.author-label{


font-size:11px;


color:#94a3b8;


text-transform:uppercase;


letter-spacing:1px;


font-weight:600;


margin-bottom:5px;


}





.author-name{


font-size:20px;


font-weight:800;


color:#fff;


margin-bottom:5px;


}





.author-designation{


font-size:14px;


color:#8fe8f8;


font-weight:600;


margin-bottom:12px;


}





.author-bio{


font-size:14px;


line-height:1.7;


color:#b5b5b5;


margin-bottom:18px;


}







/* Profile Button */


.author-profile-btn{


display:inline-flex;


align-items:center;


gap:8px;


padding:10px 20px;


background:#8fe8f8;


color:#000;


border-radius:30px;


font-size:13px;


font-weight:700;


transition:.3s;


margin-bottom:18px;


}



.author-profile-btn:hover{


background:#51c7df;


}









/* Social */


.author-social{


display:flex;


align-items:center;


gap:10px;


flex-wrap:wrap;


}



.social-label{


font-size:13px;


color:#94a3b8;


font-weight:600;


}




.social-icon{


width:36px;


height:36px;


display:flex;


align-items:center;


justify-content:center;


border-radius:50%;


color:#fff;


font-size:14px;


font-weight:700;


transition:.3s;


}






.social-icon:hover{


transform:translateY(-3px);


}






.facebook{


background:#1877f2;


}



.instagram{


background:

linear-gradient(
45deg,
#f09433,
#e6683c,
#dc2743,
#cc2366
);


}



.twitter{


background:#000;


}



.linkedin{


background:#0077b5;


}



.youtube{


background:#ff0000;


}



.website{


background:#6366f1;


}








@media(max-width:600px){


.author-box{


flex-direction:column;


}


}




/* ===================================================
   BLOG — ARTICLE LAYOUT + SIDEBAR
   Om Datta Dental Clinic  ·  black / cyan
   Load AFTER blog.css
   =================================================== */


/* Global safety net — this is what caused the overflow */
.article-section img,
.sidebar img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ── LAYOUT ─────────────────────────────────────── */

.article-section {
  padding: 56px 0 88px;
  background: #000;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}

/* minmax(0,1fr) above + this prevents long words / wide
   tables from blowing the column out */
.article-main {
  min-width: 0;
}


/* ── SIDEBAR SHELL ──────────────────────────────── */

.sidebar {
  min-width: 0;
  position: sticky;
  top: 96px;                       /* clears the sticky header */
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

/* Slim scrollbar */
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(81, 199, 223, .25);
  border-radius: 99px;
}
.sidebar { scrollbar-width: thin; scrollbar-color: rgba(81,199,223,.25) transparent; }

.side-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}


/* ── CARD ───────────────────────────────────────── */

.sb-card {
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius);
  padding: 20px;
  min-width: 0;
  overflow: hidden;
}

.sb-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bd-text);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bd-line);
}

/* Cyan tick before the title */
.sb-card-title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--bd-cyan);
  flex: none;
}


/* ── SEARCH ─────────────────────────────────────── */

.sb-search {
  display: flex;
  gap: 8px;
}

.sb-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--bd-text);
  background: var(--bd-surface-2);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.sb-search input::placeholder { color: var(--bd-muted); }

.sb-search input:focus {
  border-color: var(--bd-cyan);
  box-shadow: 0 0 0 3px var(--bd-cyan-soft);
}

.sb-search button {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #04191d;
  background: var(--bd-cyan);
  border: 0;
  border-radius: var(--bd-radius-sm);
  cursor: pointer;
  transition: transform .18s, filter .18s;
}

.sb-search button:hover { filter: brightness(1.12); transform: translateX(2px); }


/* ── RECENT POSTS ───────────────────────────────── */

.sb-post {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);   /* the actual fix */
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--bd-line);
  text-decoration: none;
  transition: transform .2s;
}

.sb-post:last-child { border-bottom: 0; padding-bottom: 0; }
.sb-post:first-of-type { padding-top: 0; }
.sb-post:hover { transform: translateX(4px); }

.sb-post img,
.sb-post-noimg {
  width: 76px;
  height: 60px;
  border-radius: var(--bd-radius-sm);
  object-fit: contain;
  object-position: center;
  background: var(--bd-surface-2);
  border: 1px solid var(--bd-line);
}

.sb-post-noimg {
  display: grid;
  place-items: center;
  font-size: 20px;
}

.sb-post-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--bd-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}

.sb-post:hover .sb-post-title { color: var(--bd-cyan); }

.sb-post-date {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bd-muted);
}


/* ── CATEGORIES ─────────────────────────────────── */

.sb-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--bd-text);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--bd-radius-sm);
  transition: background .2s, border-color .2s, color .2s;
}

.sb-cat:last-child { margin-bottom: 0; }

.sb-cat:hover {
  background: var(--bd-surface-2);
  border-color: var(--bd-cyan-line);
  color: var(--bd-cyan);
}

.sb-cat.active-cat {
  background: var(--bd-cyan-soft);
  border-color: var(--bd-cyan-line);
  color: var(--bd-cyan);
  font-weight: 600;
}

.sb-cat-count {
  flex: none;
  min-width: 26px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: var(--bd-muted);
  background: rgba(255, 255, 255, .05);
  border-radius: 99px;
}

.sb-cat:hover .sb-cat-count,
.sb-cat.active-cat .sb-cat-count {
  color: #04191d;
  background: var(--bd-cyan);
}


/* ── TAG CLOUD ──────────────────────────────────── */

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cloud-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  font-size: 12px;
  color: var(--bd-muted);
  text-decoration: none;
  background: var(--bd-surface-2);
  border: 1px solid var(--bd-line);
  border-radius: 99px;
  transition: all .2s;
}

.cloud-tag:hover {
  color: var(--bd-cyan);
  border-color: var(--bd-cyan-line);
  background: var(--bd-cyan-soft);
}

.cloud-tag.size-sm { font-size: 11px; padding: 5px 9px; }
.cloud-tag.size-lg { font-size: 13px; padding: 7px 13px; color: var(--bd-text); }

.cloud-tag-count {
  font-size: 10px;
  opacity: .55;
}


/* ── APPOINTMENT CARD ───────────────────────────── */

.appointment-card {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--bd-radius);
  border: 1px solid var(--bd-cyan-line);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(81,199,223,.16) 0%, transparent 58%),
    var(--bd-surface);
  overflow: hidden;
}

/* Soft cyan glow */
.appointment-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(81, 199, 223, .12);
  filter: blur(38px);
  pointer-events: none;
}

.appointment-card h3 {
  position: relative;
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.appointment-card p {
  position: relative;
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--bd-muted);
}

.appointment-card a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #04191d;
  text-decoration: none;
  background: var(--bd-cyan);
  border-radius: 99px;
  transition: transform .2s, box-shadow .2s;
}

.appointment-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(81, 199, 223, .55);
}


/* ── TOC toggle state (used by the JS) ──────────── */

.toc-list.is-hidden { display: none; }


/* ── Accessibility helper ───────────────────────── */

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


/* ── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 1200px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}

@media (max-width: 991px) {
  .article-section { padding: 40px 0 64px; }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  /* Un-stick and let it flow below the article */
  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  /* Two-up cards on tablet */
  .side-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .side-card { grid-template-columns: minmax(0, 1fr); }
  .sb-card { padding: 16px; }
  .sb-post { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .sb-post img,
  .sb-post-noimg { width: 64px; height: 52px; }
  .appointment-card { padding: 22px 18px; }
}

/* Dockbar overlaps the bottom of the page on mobile —
   stop it covering the last card */
@media (max-width: 991px) {
  .article-section { padding-bottom: 110px; }
}




/* ===================================================
   RELATED POSTS — horizontal cards
   =================================================== */

.related-wrap {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--bd-line);
}

.related-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bd-text);
}

.related-heading::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--bd-cyan);
  flex: none;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* ── Horizontal card ── */

.rc {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);   /* image | text */
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  background: var(--bd-surface);
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius);
  transition: transform .28s cubic-bezier(.2,.7,.3,1),
              border-color .28s, box-shadow .28s;
}

.rc:hover {
  transform: translateY(-3px);
  border-color: var(--bd-cyan-line);
  box-shadow: 0 16px 34px -22px rgba(81, 199, 223, .5);
}

/* ── Media ── */

.rc-media {
  position: relative;
  overflow: hidden;
  background: var(--bd-surface-2);
}

.rc-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}

.rc:hover .rc-media img { transform: scale(1.07); }

/* Fade the right edge into the card body */
.rc-media::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 40%;
  background: linear-gradient(to left, rgba(11,13,14,.7), transparent);
  pointer-events: none;
}

.rc-no-img {
  width: 100%;
  height: 100%;
  min-height: 118px;
  display: grid;
  place-items: center;
  font-size: 26px;
  opacity: .35;
}

/* ── Body ── */

.rc-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 16px 18px;
}

.rc-date {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bd-cyan);
  opacity: .8;
}

.rc-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bd-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .25s;
}

.rc:hover .rc-title { color: var(--bd-cyan); }

.rc-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--bd-muted);
  transition: color .25s;
}

.rc-more em { font-style: normal; transition: transform .25s; }

.rc:hover .rc-more { color: var(--bd-cyan); }
.rc:hover .rc-more em { transform: translateX(4px); }

/* ── Responsive ── */

@media (max-width: 1200px) {
  .rc { grid-template-columns: 116px minmax(0, 1fr); }
}

@media (max-width: 991px) {
  .related-wrap { margin-top: 48px; padding-top: 32px; }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .rc { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .rc { grid-template-columns: 104px minmax(0, 1fr); }
  .rc-body { padding: 13px 14px; }
  .rc-title { font-size: 13.5px; }
  .rc-more { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rc, .rc-media img, .rc-more em { transition: none; }
  .rc:hover, .rc:hover .rc-media img { transform: none; }
}








