/* Root Grid Variables */
:root {
  --gap-base: 1.5rem;
  --gap-half: calc(var(--gap-base) / 2);
  --gap-double: calc(var(--gap-base) * 2);
}

/* Reset / Box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 🌐  Container */
.container {
  max-width: var(--layout_width);
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

/* 📌 Row for Flex/Grid Layout */
.ascora-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-base);
  width: 100%;
}

/* 🌐 Page Content Padding */
.page-content {
  padding-top: var(--layout_padding_top);
  padding-bottom: var(--layout_padding_bottom);
}

/* Unflex Row ( Flex not want) */
.unflex-row {
  width: 100%;
  display: block;
}

/* 🌐 Wide Layout (Full Width) */
.wide {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* 📦 Boxed Layout */
.boxed {
  max-width: var(--layout_width);
  margin: 0 auto;
  background-color: #f9f9f9;
  box-shadow: var(--boxed_shadow, 0 0 10px rgba(0, 0, 0, 0.1));
  margin-top: var(--boxed_margin_top);
  margin-bottom: var(--boxed_margin_bottom);
}

a {
  text-decoration: none;
}

/* 📦 Boxed Layout-এর ভিতরের Content */
.boxed .site-container {
  width: 100%;
  max-width: var(--layout_width);
  background: #fff;
  padding-right: 30px;
  padding-left: 30px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

/* ====== Blog Style ======== */
.ascora-row .as-df-page {
  flex: 3;
}

.ascora-row .ascora-sidebar {
  flex: 1;
}

.ascora-post.ascora-row .ascora-sidebar {
  flex: 1;
}

.ascora-post.ascora-row .ascora-content.ascora-has-sidebar {
  flex: 3;
}

.ascora-post.ascora-row .ascora-sidebar {
  flex: 1
}

/* ====== breadcrumb ======== */
nav.breadcrumb ol.breadcrumb {
  display: flex;
  justify-content: start;
  gap: var(--gap-half);
  list-style: none;
}

.breadcrumb-item a,
.breadcrumb-item span {
  color: var(--breadcrumb_font_color) !important;
  font-size: var(--breadcrumb_font_size);
}

.breadcrumb-item a:hover {
  color: var(--breadcrumb_font_hover_color) !important;
}

.ascora-row.breadcrumb {
  margin-bottom: 10px;
}



/* ====== Ascora Home Page ======== */
.home .wide .page-content {
  padding-top: 0;
}

.home .page-main-section {
  margin-top: 0;
}




/* 
***********************************
***********Blog Style**************
***********************************
*/
/* Sidebar 30% width, Main Content will take remaining space */

.blog-main .ascora-row .blog-article {
  flex-grow: 1;
  /* flex-basis: 70%; */
}

.media {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hovercover {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 0;
  height: 100%;
  background-color: var(--hovercover_background);
  transition: var(--hovercover_transition);
  opacity: var(--hovercover_background_opacity);
}

.media:hover .hovercover {
  width: 100%;
}

.hovercover a {
  display: inline-block;
  text-decoration: none;
  color: var(--hovercover_title_color) !important;
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: var(--hovercover_icon_size);
  opacity: 0;
  font-weight: normal;
}

.media:hover .hovercover a {
  opacity: 1;
}

.hovercover a.first-child {
  margin-top: -20px;
  margin-left: -15px;
}

.hovercover a.last-child {
  margin-top: -20px;
  margin-left: 15px;
}

.hovercover-title {
  font-size: var(--hovercover_title_font_size);
  position: absolute;
  display: block;
  width: 100%;
  color: var(--hovercover_title_color);
  text-align: center;
  top: 50%;
  margin-top: 10px;
  opacity: 0;
  font-weight: var(--hovercover_title_font_weight);
}

.media:hover .hovercover-title {
  opacity: 1;
}

.img-thumbnail {
  padding: 0.25rem;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 5px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========== page ===========*/
.page-main-section {
  margin: 20px auto;
}

/* Fixed Sidebar Width */

/* Left Sidebar */
.left-sidebar .ascora-row {
  flex-wrap: nowrap;
  gap: 20px;
}

.left-sidebar .page-article {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* ======== Pagination ===========*/
.ascora-pagination {
  margin: 20px auto;
}

.ascora-pagination .flex-start {
  justify-content: flex-start;
}

.ascora-pagination .space-around {
  justify-content: space-around;
}

.ascora-pagination .flex-end {
  justify-content: flex-end;
}

/* ========== Fotter ===========*/
.footer .ascora-row div {
  /* flex-basis: 25%; */
  flex: 1;
}

.footer .ascora-row .sub-menu {
  display: none;
}

/* ========Sub Fotter ===========*/
.sub-footer .ascora-row.sub-footer-inner {
  margin: 15px auto;
  align-items: center;
}

/* ======== Single Page ===========*/
.single-post.pagination {
  display: flex;
  justify-content: end;
  width: 100%;
}

.about-author {
  margin: 20px 0;
}

div.author-pic-des.single-page {
  display: flex;
  margin-top: 10px;
}

div.author-pic-des.single-page .author-pic {
  margin-right: 20px;
}

/* ======= Author Related Post ========= */
.related-title {
  margin-bottom: 10px;
}

article.related-post {
  flex: 1;
  /* সব div সমান জায়গা নেবে */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======== Comments Lis t========*/
.the-comment.d-flex {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

/* 💻 Responsive Adjustments */
@media (max-width: 1024px) {
  .container {
    max-width: 95%;
  }

  .boxed {
    max-width: 95%;
  }

  .boxed .container {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  .boxed .container {
    padding-right: 15px;
    padding-left: 15px;
  }

  /* .ascora-row {
    flex-direction: column;
    flex-wrap: wrap;

  } */
}



/* 💻 Responsive Adjustments */
@media (max-width: 1024px) {
  .page-content {
    padding-top: var(--layout_padding_top);
    padding-bottom: var(--layout_padding_bottom);
  }
}

@media (max-width: 768px) {
  .page-content {
    padding-top: var(--layout_padding_top);
    padding-bottom: var(--layout_padding_bottom);
  }
}

/******************************
	-	Contact Page	-
********************************/
/* Ascora Contact Alerts */
/* Alert Info */
.contact.alert-info {
  padding: 20px 0;
  border: 1px solid #0c5460;
  background-color: #d1ecf1;
  margin-bottom: 15px;
}

.contact.alert-info p {
  text-align: center;
  color: #0c5460;
  padding: 5px;
  font-size: 17px;
  line-height: 27px;
  margin-bottom: 0;
}

.contact.alert-info i {
  color: #0c5460;
}

.contact.alert-info a {
  position: absolute;
  color: #0c5460;
  top: 0;
  right: 0;
  border-left: 1px solid #0c5460;
  border-bottom: 1px solid #0c5460;
  padding: 2px 6px;
  text-decoration: none;
}

.contact.alert-info a:hover {
  color: #12b878 !important;
}

/* icon colour */




.contact.alert-info i {
  color: #17a2b8;
}

/* close link (optional) */
.contact.alert-info a {
  margin-left: auto;
  font-size: 18px;
  color: inherit;
  text-decoration: none;
  opacity: .6;
}

.contact.alert-success a:hover,
.contact.alert-error a:hover,
.contact.alert-info a:hover {
  opacity: 1;
}

.alert .contact {
  position: relative;
}

.alert .contact a {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 6px;
  text-decoration: none;
}

/*alert-success*/
.contact.alert-success {
  padding: 20px 0;
  border: 1px solid #12b878;
  background-color: rgba(18, 184, 120, 0.2);
  margin-bottom: 15px;
}

.contact.alert-success p {
  text-align: center;
  color: #12b878;
  padding: 5px;
  font-size: 17px;
  line-height: 27px;
  margin-bottom: 0;
}

.contact.alert-success i {
  color: #28a745;
}

.contact.alert-success a {
  position: absolute;
  color: #12b878;
  top: 0;
  right: 0;
  border-left: 1px solid #12b878;
  border-bottom: 1px solid #12b878;
  padding: 2px 6px;
  text-decoration: none;
}

.contact.alert-success a:hover {
  color: #12b878 !important;
}

/* Alert Eror */
.contact.alert-error {
  background-color: #f5c6cb;
  padding: 20px 0;
  border: 1px solid #721c24;
  opacity: 0.4;
  margin-bottom: 15px;
}

.contact.alert-error i {
  color: #dc3545;
}

.contact.alert-error p {
  text-align: center;
  color: #721c24;
  padding: 5px;
  font-size: 17px;
  line-height: 27px;
  margin-bottom: 0;
}

.contact.alert-error i {
  color: #721c24;
}

.contact.alert-error a {
  position: absolute;
  color: #721c24;
  top: 0;
  right: 0;
  border-left: 1px solid #721c24;
  border-bottom: 1px solid #721c24;
  padding: 2px 6px;
  text-decoration: none;
}

.contact.alert-error a:hover {
  color: #721c24 !important;
}

/* Alert Warning*/
.contact.alert-warning {
  padding: 20px 0;
  border: 1px solid red;
  background-color: rgba(253, 3, 3, 0.2);
  opacity: 0.4;
}

.contact.alert-warning p i {
  color: #ffc107;
  margin-right: 5px;
}

.contact.alert-warning p {
  text-align: center;
  color: #ff0000;
  padding: 5px;
  font-size: 17px;
  line-height: 27px;
  margin-bottom: 0;
}

.contact.alert-warning {
  position: relative;
  margin-bottom: 15px;
}

.contact.alert-warning a {
  position: absolute;
  color: red;
  top: 0;
  right: 0;
  border-left: 1px solid red;
  border-bottom: 1px solid red;
  padding: 2px 6px;
  text-decoration: none;
}

.contact.alert-warning a:hover {
  color: #ff0000 !important;
}