    /* ####################################################
    :: Template Name: Essence - Fashion Ecommerce Template
    :: Author: Colorlib
    :: Author URL: https://colorlib.com
    :: Description: Essence is smart & elegant fashion e-commerce Template. It's suitable for all e-commerce business platform.
    :: Version: 1.0.0
    :: Created: April 27, 2018
    :: Last Updated: May 2, 2018
    #################################################### */

    /* ---------------------------------------
    ##### - PLACE YOUR CUSTOM CSS HERE - #####
    --------------------------------------- */
    .pace .pace-progress {
    background: #1abb9c;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 100%;
    width: 100%;
    height: 2px;
}

.pace {
    -webkit-pointer-events: none;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.pace-inactive {
    display: none;
}

.navmenu ul li.active a{
    color: var(--nav-hover-color);
}

.img-fluid{
    width: 100%;
}


/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  text-align: center;
  padding: 0px 0px 10px 0px;
  position: relative;
}

.footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  padding: 0;
  margin: 0 0 15px 0;
}

.footer p {
  font-size: 15;
  font-style: italic;
  padding: 0;
  margin: 0 0 30px 0;
}

.footer .social-links {
  margin: 0 0 30px 0;
}

.footer .social-links a {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--contrast-color);
  line-height: 1;
  margin: 0 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  text-decoration: none;
}

.footer .copyright {
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .credits {
  font-size: 13px;
  padding-top: 5px;
}

.open-button {
    background-color: #4285f4 !important;
    color: white;
    padding: 9px 12px;
    border: none;
    cursor: pointer;
    position: fixed;
    bottom: 0px;
    right: 20px;
    border-radius: 10px 10px 0px 0px;
    z-index: 666;
}


/* The popup chat - hidden by default */
.chat-popup {
  display: none;
  position: fixed;
  bottom: 0px;
  right: 20px;
  border: 1px solid #f1f1f1;
  z-index: 9;
  background-color: white;
  z-index: 9999;
  width: 280px;
}

#list-chat {
    width: 100%;
    z-index: 9;
    background-color: white;
    z-index: 9999;
    
}

#list-chat #wrap-list{
  min-height: 400px;
}
#chat #chat-loader{
  display: none;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  #background:#fff url(../images/ajax-loader.gif) no-repeat center center;
}

#list-chat #wrap-list .list-chat-item{
    width: 100%;
    line-height: 37px;
    margin: 0px auto 0px;
    background: #fff;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
}
#list-chat #wrap-list .list-chat-item > a{
  display: block;
  width: 100%;
  font-weight: normal;
  padding: 5px 10px;
  font-size: 17px;
}
.list-chat-item > a:hover{
  background-color: #f2f2f2;
}

.mess_acctive{
  background-color: #A4E993;
  font-weight: bold !important;
}

.chat-popup .input_u_name{
  position: absolute;
    width: 100%;
    top: 0px;
    left: 0px;
    background: #444;
    height: 100%;
    z-index: 9999;
    opacity: 0.9;
}
.chat-popup .input_u_name > p{
  margin: 10% 10%;
}
.chat-popup .input_u_name > p > .btnInpUName,.chat-popup .input_u_name > p > .btnEditUName{
  margin: 5px 5px 0px 0px;
}

.form-container .chat_title{
  font-size: 17px;
    padding: 5px 3px;
    #background: #2039ad;
    background-image: linear-gradient(180deg, #5622ED, #2253ED);
    color: #fff;
    font-weight: 0;
    margin-bottom: 0px !important;
}

.p-chat-right{
      text-align: left;
}
.p-chat-right > span{
  background-color: #1877F2 !important;
  color: #fff;
}
.p-chat-left > span.chat-u-name{
  background-color: #3d5a61 !important;
  color: #fff;
  float: left;
  padding: 0px 7px !important;
}
.p-chat-left > span{
  color: #000;
}
.chat-created-on{
  font-size: 10px;
  display: none;
  margin: 0px !important;
  clear: both;
}
#chat-wrap { 
  border: none; 
  margin: 0 0 10px 0; 
  max-height: 300px;
  overflow-y: scroll;
}
#chat-area{ 
    height: max-content;
    min-height: 300px;
    overflow: auto;
    #max-height: 160px;
    #border: 1px solid #666;
    padding: 2px 2px;
    background: white;
    overflow-wrap: break-word;
}

#chat-area span{ 
       background: #ddd;
    padding: 5px 7px;
    font-size: 16px;
    -webkit-border-radius: 5px;
    margin: 0 5px 0 0;
}
.form-container label.welcome_guest{
  font-size: 13px;
    padding: 0px 5px;
}
#chat-area > div{
    padding: 1px 1px;
    margin: 4px 0px 0px 0px;
    color: #444;
    -moz-border-radius: 5px;
    -webkit-border-radius: 4px;
    clear: both;
    overflow: hidden;
}
#chat-area p#_more{
text-align: center;
    margin: 0px;
    padding: 0px;
    background: none;
}
#chat-area p > .loadmore{
      font-size: 12px;
    color: #fff;
    background: #666;
    padding: 2px 6px;
    border-radius: 4px;
}
#chat-area .top-chat-created-on{
  font-size: 11px;
  text-align: center;
  margin: 0px;
}

#chat-area .chat-content{
  padding: 0px 7px;
  overflow-wrap: break-word;
  float: left;
  -webkit-border-radius:5px 0px 5px 0px !important;
  -moz-border-radius: 5px 0px 5px 0px !important;
}

#chat{
position: fixed;
bottom: 0px;
width: 300px;
height: 400px;
right: 10px;
display: none;
background: #fff;
border-radius: 8px 8px 0px 0px;
box-shadow: 0px 0px 4px 0px #888;
z-index: 9999;
}

#chat .header-list h2.title .fa-comment-title-chat{
  padding: 0px 5px;
  font-size: 15px;
}



#chatbox {
    width: 290px;
    background: #fff;
    border-radius: 20px 20px 0px 0px;
    overflow: hidden;
    height: 70%;
    position: fixed;
    bottom: 0px;
    right: 20px;
    box-shadow: 0px 0px 5px 0px #c2c2c2;
    z-index: 777;
    display: none;
}

#chatbox .header-list{
border-radius: 5px 5px 0px 0px;
padding: 10px 0px;
    background: #4285f4 !important;
    width: 100%;
}
#chatbox .header-list > span.btn-close{
position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 13px;
    z-index: 9999;
}

#chatbox .header-list > span.btn-back{
position: absolute;
left: 5px;
top: 5px;
font-size: 30px;
color: #fff;
cursor: pointer;
display: none;
padding: 0px 8px;
}
#chatbox .header-list > span.btn-back:hover{
  color: #000;
}
#chatbox .header-list h2.title{
font-size: 17px;
text-align: left;
color: #fff;
padding: 0px 0px 0px 15px;
margin: 0px;
font-weight: bold;
color: #fff !important;
border-radius: 5px 5px 0px 0px;
text-transform: uppercase;
}

#chatbox .header-list p{
  color: #f2f2f2;
    padding: 5px 0px 0px 15px;
    margin: 0px;
    opacity: 0.8;
  }

#chatbox > .header-list h2.title > a{
color: #fff;
}

#friendslist{
  position:absolute;
  top:0;
  left:0;
  width:290px;
  height:100%;
}
#topmenu{
}
#topmenu span.friends{margin-bottom:-1px;}
#topmenu span.chats{background-position:-95px 25px; cursor:pointer;}
#topmenu span.chats:hover{background-position:-95px -46px; cursor:pointer;}
#topmenu span.history{background-position:-190px 24px; cursor:pointer;}
#topmenu span.history:hover{background-position:-190px -47px; cursor:pointer;}
#friends{
  height: 85%;
  overflow: hidden;
    clear: both;
}
#friends:hover{
  overflow-y: scroll;
}
/*
 *  STYLE 4
 */

#friends::-webkit-scrollbar-track
{
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  background-color: #F5F5F5;
}

#friends::-webkit-scrollbar
{
  width: 6px;
  background-color: #F5F5F5;
}

#friends::-webkit-scrollbar-thumb
{
  background-color: #000000;
  border: 2px solid #555555;
}

.friend{
  height:78px;
  border-bottom:1px solid #e7ebee;    
  position:relative;
}
.friend:hover{
  background:#f1f4f6;
  cursor:pointer;
}
.friend img{
  width:40px;
  border-radius:50%;
  margin:15px;
  float:left;
}
.floatingImg{
  width:40px;
  border-radius:50%;
  position:absolute;
  top:0;
  left:12px;
  border:3px solid #fff;
}
.friend p{
  padding:15px 0 0 0;     
  float:left;
  width:200px;
}
.friend p strong{
  font-weight:600;
  font-size:15px;
  color:#597a96;  

}
.friend p span{
  font-size:13px;
  font-weight:400;
  color:#aab8c2;
}
.friend .status{
  background:#26c281;
  border-radius:50%;  
  width:9px;
  height:9px;
  position:absolute;
  top:31px;
  right:17px;
}
.friend .status.away{background:#ffce54;}
.friend .status.inactive{background:#eaeef0;}
#search{
  background:#e3e9ed url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/245657/search.png") -11px 0 no-repeat;
  height:60px;
  width:290px;
  position:absolute;
  bottom:0;
  left:0;
}
#searchfield{
  background:#e3e9ed;
  margin:21px 0 0 55px;
  border:none;
  padding:0;
  font-size:14px;
  font-family:"Open Sans", sans-serif; 
  font-weight:400px;
  color:#8198ac;
}
#searchfield:focus{
   outline: 0;
}
#chatview{
  width:290px;
  height:100%;
  position:absolute;
  top:0;
  left:0; 
  display:none;
  background:#fff;
}
#profile{
  height:153px;
  overflow:hidden;
  text-align:center;
  color:#fff;
}
.p1 #profile{
  background:#fff url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/245657/timeline1.png") 0 0 no-repeat;
}
#profile .avatar{
  width:68px;
  border:3px solid #fff;
  margin:23px 0 0;
  border-radius:50%;
}
#profile p{
  font-weight:600;
  font-size:15px;
  margin:95px 0 -1px;
  opacity:1;
  -webkit-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
     -moz-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
      -ms-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
       -o-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
          transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000); 
}
#profile  p.animate{
  margin-top:97px;
  opacity:1;
  -webkit-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
     -moz-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
      -ms-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
       -o-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
          transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000); 
}
#profile p > a{
  color: #fff !important;
}
#profile span{
  font-weight:400;
  font-size:11px;
}
#chat-messages{
  opacity:0;
  margin-top:30px;
  width:290px;
  height:50%;
  overflow-y:scroll;  
  overflow-x:hidden;
  padding-right: 15px;
  -webkit-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
     -moz-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
      -ms-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
       -o-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
          transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
}
#chat-messages.animate{
  opacity:1;
  margin-top:0;
}
#chat-messages label{
  color:#aab8c2;
  font-weight:600;
  font-size:12px;
  text-align:center;
  margin:10px 0;
  width:290px;
  display:block;  
  float: left;
}
#chat-messages div.message{
  padding:0 0 20px 50px;
  clear:both;
  margin-bottom:50px;
}
#chat-messages div.message.right{
    padding: 0 58px 30px 0;
    margin-right: -25px;
    margin-left: 19px;
}

#chat-messages div.message.right > .bubble > span{
  color: #aab8c2;
    font-size: 11px;
    position: absolute;
    right: 0;
    bottom: -22px;
    text-align: right;
}
#chat-messages .message img{
    float: left;
    margin-left: -38px;
    border-radius: 50%;
    width: 30px;
    margin-top: 12px;
}
#chat-messages div.message.right img{
  float: right; 
    margin-left: 0;
  margin-right: -38px;  
}
.message .bubble{ 
  background:#f0f4f7;
  font-size:13px;
  font-weight:600;
  padding:10px 12px;
  border-radius:5px 5px 5px 0px;
  color:#8495a3;
  position:relative;
  float:left;
}
#chat-messages div.message.right .bubble{
  float:right;
  border-radius:5px 5px 0px 5px ;
}
.bubble .corner{
  background:url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/245657/bubble-corner.png") 0 0 no-repeat;
  position:absolute;
  width:7px;
  height:7px;
  left:-5px;
  bottom:0;
}
div.message.right .corner{
  background:url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/245657/bubble-cornerR.png") 0 0 no-repeat;
  left:auto;
  right:-5px;
}
.bubble span{
    color: #aab8c2;
    font-size: 11px;
    position: absolute;
    left: 0;
    bottom: -22px;
}
#sendmessage{
  height:60px;
  border-top:1px solid #e7ebee; 
  position:absolute;
  bottom:0;
  right:0px;
  width:290px;
  background:#fff;
  padding-bottm:50px;
}
#sendmessage input{
  border
}
#sendmessage input{
  background:#fff;
  margin:21px 0 0 21px;
  border:none;
  padding:0;
  font-size:14px;
  font-family:"Open Sans", sans-serif; 
  font-weight:400px;
  color:#aab8c2;
}
#sendmessage input:focus{
   outline: 0;
}
#sendmessage button{
  background:#fff url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/245657/send.png") 0 -41px no-repeat;
  width:30px;
  height:30px;
  position:absolute;
  right: 15px;
  top: 23px;
  border:none;
}
#sendmessage button:hover{
  cursor:pointer;
  background-position: 0 0 ;
}
#sendmessage button:focus{
   outline: 0;   
}

#close{
  position:absolute;
  top: 8px; 
  opacity:0.8;
  right: 10px;
  width:20px;
  height:20px;
  cursor:pointer;
}
#close:hover{
  opacity:1;
}
.cx, .cy{
  background:#fff;
  position:absolute;
  width:0px;
  top:15px;
  right:15px;
  height:3px;
  -webkit-transition: all 250ms ease-in-out;
     -moz-transition: all 250ms ease-in-out;
    -ms-transition: all 250ms ease-in-out;
     -o-transition: all 250ms ease-in-out;
      transition: all 250ms ease-in-out;
}
.cx.s1, .cy.s1{ 
  right:0;  
  width:20px; 
  -webkit-transition: all 100ms ease-out;
     -moz-transition: all 100ms ease-out;
    -ms-transition: all 100ms ease-out;
     -o-transition: all 100ms ease-out;
      transition: all 100ms ease-out;
}
.cy.s2{ 
  -ms-transform: rotate(50deg); 
  -webkit-transform: rotate(50deg); 
  transform: rotate(50deg);    
  -webkit-transition: all 100ms ease-out;
     -moz-transition: all 100ms ease-out;
    -ms-transition: all 100ms ease-out;
     -o-transition: all 100ms ease-out;
      transition: all 100ms ease-out;
}
.cy.s3{ 
  -ms-transform: rotate(45deg); 
  -webkit-transform: rotate(45deg); 
  transform: rotate(45deg);    
  -webkit-transition: all 100ms ease-out;
     -moz-transition: all 100ms ease-out;
    -ms-transition: all 100ms ease-out;
     -o-transition: all 100ms ease-out;
      transition: all 100ms ease-out;
}
.cx.s1{ 
  right:0;  
  width:20px; 
  -webkit-transition: all 100ms ease-out;
     -moz-transition: all 100ms ease-out;
    -ms-transition: all 100ms ease-out;
     -o-transition: all 100ms ease-out;
      transition: all 100ms ease-out;
}
.cx.s2{ 
  -ms-transform: rotate(140deg); 
  -webkit-transform: rotate(140deg); 
  transform: rotate(140deg);     
  -webkit-transition: all 100ms ease-out;
     -moz-transition: all 100ms ease-out;
    -ms-transition: all 100ease-out;
     -o-transition: all 100ms ease-out;
      transition: all 100ms ease-out;
}
.cx.s3{ 
  -ms-transform: rotate(135deg); 
  -webkit-transform: rotate(135deg); 
  transform: rotate(135deg);     
  -webkit-transition: all 100ease-out;
     -moz-transition: all 100ms ease-out;
    -ms-transition: all 100ms ease-out;
     -o-transition: all 100ms ease-out;
      transition: all 100ms ease-out;
}
#chatview, #sendmessage { 
overflow:hidden; 
border-radius:6px; 
}




.has-error label{color:#f25961!important}
.has-error .form-control{border-color:#f25961!important;color:#f25961!important}
.has-error .input-group-text{border-color:#f25961!important;background:#f25961!important;color:#fff!important}
.input-group label.error,.input-group label.success{width:100%;order:100}
.custom-control{position:relative}.custom-control.custom-checkbox,.custom-control.custom-radio{margin-bottom:0;cursor:pointer;margin-right:25px;display:inline-block}.custom-control.custom-checkbox .custom-control-input,.custom-control.custom-radio .custom-control-input{margin-right:10px}
.custom-control.custom-checkbox label.error,.custom-control.custom-checkbox label.success,.custom-control.custom-radio label.error,.custom-control.custom-radio label.success{position:absolute;width:100vh;top:23px;left:0}
.has-feedback{position:relative}
.form-control-feedback{position:absolute;top:50%;transform:translateY(-50%);right:20px}
.has-success .form-control-feedback{color:#31ce36}
.has-error .form-control-feedback{color:#f25961}
.input-group.has-icon{border-radius:.25rem;border:1px solid #ced4da}
.input-group.has-icon.has-success,.input-group.has-success{border:1px solid #31ce36!important;color:#31ce36}.input-group.has-error{border:1px solid #f25961!important;color:#f25961}
.input-group.has-icon.has-error{border:1px solid #f25961!important;color:#f25961}



/* ===== Template 5 custom editorial overrides ===== */
:root {
  --template-five-bg: #f6f0e8;
  --template-five-surface: rgba(255,255,255,0.78);
  --template-five-ink: #21160f;
  --template-five-accent: #9f5d32;
  --template-five-line: rgba(33, 22, 15, 0.12);
}

body:has(.template-five-header),
body:has(.template-five-main) {
  background:
    radial-gradient(circle at top left, rgba(159,93,50,0.12), transparent 28%),
    linear-gradient(180deg, #f9f4ef 0%, #f2ece4 100%);
  color: var(--template-five-ink);
  font-family: 'Manrope', sans-serif;
}

.template-five-header {
  background: rgba(248, 242, 235, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--template-five-line);
}

.template-five-header__inner {
  display: block;
  padding-top: 14px;
  padding-bottom: 14px;
}

.template-five-header__eyebrow,
.template-five-page__label,
.template-six-page__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
}

.template-five-header__eyebrow,
.template-five-page__label {
  color: var(--template-five-accent);
}

.template-five-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
}

.template-five-brand {
  gap: 14px;
  color: var(--template-five-ink);
}

.template-five-brand:hover {
  color: var(--template-five-accent);
}

.template-five-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3e2718, #9f5d32);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
}

.template-five-brand .sitename,
.template-five-page h1,
.template-five-articles__heading h2,
.template-five-card h3,
.template-five-footer h3 {
  font-family: 'Cormorant Garamond', serif;
}

.template-five-brand strong,
.template-five-brand small {
  display: block;
}

.template-five-brand small {
  opacity: 0.72;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.template-five-nav ul {
  gap: 10px;
}

.template-five-nav a {
  border-radius: 999px;
  padding: 10px 16px !important;
}

.template-five-frame {
  padding: 28px 0 56px;
}

.template-five-page__intro,
.template-six-page__hero {
  max-width: 100%;
  margin: 0 auto 28px;
  text-align: center;
}

.template-five-page__intro h1 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  margin: 14px 0 12px;
}

.template-five-page__intro p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(33, 22, 15, 0.76);
}

.template-five-page__body {
  background: var(--template-five-surface);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(75, 52, 36, 0.08);
  padding: 28px;
}

.template-five-articles__heading,
.template-six-articles__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.template-five-articles__heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 8px 0 0;
}

.template-five-card {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  background: #fff;
  border: 1px solid rgba(33,22,15,0.08);
  border-radius: 24px;
  overflow: hidden;
  min-height: 100%;
  box-shadow: 0 18px 35px rgba(60, 40, 25, 0.08);
}

.template-five-card__thumb {
  min-height: 220px;
  background: linear-gradient(135deg, #ead7c5, #c58a5d);
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-five-card__thumb img,
.template-six-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-five-card__icon,
.template-six-card__icon {
  font-size: 42px;
  color: rgba(255,255,255,0.92);
}

.template-five-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-five-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(33,22,15,0.6);
}

.template-five-card h3 {
  font-size: 2rem;
  line-height: 1.08;
  margin: 0;
}

.template-five-card__more {
  margin-top: auto;
  color: var(--template-five-accent);
  font-weight: 700;
}

.template-five-empty,
.template-six-empty {
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}

.template-five-empty {
  background: #fff;
  border: 1px dashed rgba(159,93,50,0.35);
}

.template-five-pagination ul,
.template-six-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.template-five-pagination a {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(33,22,15,0.14);
  background: #fff;
}

.template-five-pagination a.active {
  background: var(--template-five-accent);
  color: #fff;
  border-color: var(--template-five-accent);
}

.template-five-footer {
  background: #241812;
  color: rgba(255,255,255,0.84);
  padding: 48px 0;
}

.template-five-footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.template-five-footer__label {
  color: #d6aa7e;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  margin-bottom: 12px;
}

.template-five-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

/* ===== Template 6 custom garden overrides ===== */
body:has(.template-six-header),
body:has(.template-six-main) {
  background:
    radial-gradient(circle at top right, rgba(79, 132, 92, 0.16), transparent 26%),
    linear-gradient(180deg, #f6f4ea 0%, #edf3ea 100%);
  color: #173227;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.template-six-header {
  background: rgba(244, 247, 238, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23,50,39,0.08);
}

.template-six-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.template-six-brand {
  gap: 14px;
  color: #173227;
}

.template-six-brand__seed {
  width: 18px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f845c, #9cbc72);
  display: inline-block;
  box-shadow: 12px 0 0 -5px rgba(120, 168, 104, 0.5);
}

.template-six-brand strong,
.template-six-brand small {
  display: block;
}

.template-six-brand small {
  font-size: 12px;
  opacity: 0.78;
}

.template-six-nav a {
  border-radius: 16px;
  padding: 10px 14px !important;
}

.template-six-shell {
  padding: 36px 0 60px;
}

.template-six-page__label {
  color: #4f845c;
}

.template-six-page__hero {
  position: relative;
  padding: 20px 20px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(233,242,229,0.96)),
    radial-gradient(circle at top left, rgba(126, 174, 95, 0.2), transparent 45%);
  box-shadow: 0 22px 45px rgba(76, 109, 83, 0.09);
}

.template-six-page__hero h1,
.template-six-articles__heading h2,
.template-six-card h3,
.template-six-footer h3 {
  font-family: 'Fraunces', serif;
}

.template-six-page__hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin: 0px 0 12px;
}

.template-six-page__hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(23,50,39,0.76);
}

.template-six-page__body {
  margin-top: 24px;
}

.template-six-page__body > * {
  background: rgba(255,255,255,0.72);
  #border: 1px solid rgba(23,50,39,0.08);
  border-radius: 10px;
  padding: 26px;
  margin: 20px 0px;
  box-shadow: 0 18px 38px rgba(76,109,83,0.07);
}

.template-six-articles__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid rgba(23,50,39,0.1);
}

.template-six-card {
  background: rgba(255,255,255,0.84);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(23,50,39,0.08);
  box-shadow: 0 16px 34px rgba(76,109,83,0.08);
  min-height: 100%;
}

.template-six-card__thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #c7dbb8, #7aa26d);
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-six-card__body {
  padding: 22px;
}

.template-six-card__date {
  display: inline-block;
  margin-bottom: 10px;
  color: #4f845c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.template-six-card h3 {
  font-size: 1.7rem;
  line-height: 1.18;
  margin-bottom: 10px;
}

.template-six-card p {
  margin: 0;
  color: rgba(23,50,39,0.7);
}

.template-six-empty {
  background: rgba(255,255,255,0.84);
  border: 1px dashed rgba(79,132,92,0.35);
}

.template-six-pagination a {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(23,50,39,0.1);
}

.template-six-pagination a.active {
  background: #4f845c;
  color: #fff;
  border-color: #4f845c;
}

.template-six-footer {
  padding: 40px 0 52px;
  background: linear-gradient(180deg, #edf3ea 0%, #dbe6d8 100%);
  color: #173227;
}

.template-six-footer__wrap {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 991.98px) {
  .template-five-header__bar,
  .template-five-footer__grid,
  .template-six-header__inner,
  .template-six-footer__wrap,
  .template-five-articles__heading,
  .template-six-articles__heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .template-five-card {
    grid-template-columns: 1fr;
  }

  .template-five-card__thumb {
    min-height: 200px;
  }
}

@media (max-width: 767.98px) {
  .template-five-page__body,
  .template-six-page__body > * {
    padding: 18px;
    border-radius: 22px;
  }

  .template-six-page__hero {
    padding: 20px 20px;
  }
}
