.footer-col .ex-footer-map-section {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0 0 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(76, 158, 234, 0.08);
}

.footer-col .mapouter,
.footer-col .gmap_canvas {
  width: 100%;
  height: 220px;
}

.footer-col .gmap_iframe {
  width: 100%;
  height: 220px !important;
  border-radius: 12px;
  border: none;
  display: block;
}

@media (min-width: 768px) {

  .footer-col .ex-footer-map-section,
  .footer-col .mapouter,
  .footer-col .gmap_canvas {
    height: 260px;
  }

  .footer-col .gmap_iframe {
    height: 260px !important;
  }
}

.ex-footer-map-section {
  width: 100%;
  max-width: 768px;
  margin: 2rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(76, 158, 234, 0.08);
}

.mapouter {
  position: relative;
  text-align: right;
  width: 100%;
  height: 400px;
}

.gmap_canvas {
  overflow: hidden;
  background: none !important;
  width: 100%;
  height: 400px;
}

.gmap_iframe {
  width: 100%;
  height: 400px !important;
  border-radius: 12px;
  border: none;
  display: block;
}

@media (max-width: 768px) {

  .ex-footer-map-section,
  .mapouter,
  .gmap_canvas {
    height: 260px;
  }

  .gmap_iframe {
    height: 260px !important;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
  --primary: #4c9eea !important;
  --secondary: #2f5890;
  --success: #09a247;
  --dark: #0a1931;
  --text: #13305d;
}

* {
  font-family: Poppins, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  width: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

img {
  width: 100%;
  height: auto;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: bold;
}

p {
  line-height: 1.8;
  color: var(--text);
}

a {
  text-decoration: none !important;
  transition: color 0.25s ease;
}

/*---- typography ----*/
.ex-text-primary {
  color: var(--primary);
}

.ex-text-secondary {
  color: var(--secondary);
}

.ex-text-18 {
  font-size: 18px;
}

.ex-text-20 {
  font-size: 18px;
}

.ex-text-22 {
  font-size: 22px;
}

.ex-text-24 {
  font-size: 24px;
}

/*---- containers ----*/
.container,
.container-fluid {
  padding: 0 1rem;
}

.ex-embed-container {
  position: relative;
  padding-bottom: calc(360 / 640 * 100%);
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0px 1px 2px #d3d8dd, 0px 2px 4px #d3d8dd;
}

.ex-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.row {
  margin: 0 -1rem;
}

div[class*="col-"] {
  padding: 0 1rem;
}

@media screen and (min-width: 992px) {

  .container,
  .container-fluid {
    padding: 0 1.5rem;
  }

  .row {
    margin: 0 -1.5rem;
  }

  div[class*="col-"] {
    padding: 0 1.5rem;
  }
}

@media screen and (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .col-xxl {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
  }

  .col-xxl-auto {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
  }

  .col-xxl-1 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 8.333333%;
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }

  .col-xxl-2 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 16.666667%;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .col-xxl-3 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-xxl-4 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-xxl-5 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 41.666667%;
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .col-xxl-6 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-xxl-7 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 58.333333%;
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  .col-xxl-8 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 66.666667%;
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .col-xxl-9 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 75%;
    flex: 0 0 75%;
    max-width: 75%;
  }

  .col-xxl-10 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 83.333333%;
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }

  .col-xxl-11 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 91.666667%;
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }

  .col-xxl-12 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .pt-xxl-5 {
    padding-top: 3rem !important;
  }
}

/*---- header ----*/
.ex-header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: #ffffff;
  transition: all 0.25s ease-in-out;
}

.ex-header.sticky {
  position: fixed;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ex-header.sticky+main {
  margin-top: 70px;
}

.ex-navbar {
  margin-bottom: 0.5rem;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #4c9eea40;
  transition: all 0.25s ease-in-out;
}

.ex-header.sticky .ex-navbar {
  margin-bottom: 0;
  padding: 0.75rem 0;
  border-bottom-color: #ffffff;
}

.ex-logo {
  width: 8rem;
  transform: translateY(4px);
}

.ex-navbar-nav {
  margin-left: 1rem;
  align-items: center;
}

.ex-navbar-item+.ex-navbar-item {
  margin-left: 0.5rem;
}

.ex-navbar-link {
  padding: 0.5rem;
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary);
}

.ex-navbar-link:hover {
  color: var(--primary);
}

.ex-switch-lang {
  position: relative;
}

.ex-switch-lang img {
  width: 24px;
  border: 1px solid #cccccc;
  border-radius: 50%;
}

.ex-switch-lang-btn {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  color: var(--secondary);
}

.ex-switch-lang-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  z-index: 9;
  padding: 0.5rem;
  display: none;
  border-radius: 0.75rem;
  background-color: #ffffff;
  box-shadow: 0 0.1875rem 0.375rem rgb(140 152 164 / 25%);
}

.ex-switch-lang-options.active {
  display: block;
}

.ex-switch-lang-options li+li {
  margin-top: 0.25rem;
}

.ex-switch-lang-options a {
  position: relative;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--dark-blue);
  transition: background-color 0.25s ease;
}

.ex-switch-lang-options a.active,
.ex-switch-lang-options a:hover {
  background-color: rgba(189, 197, 209, 0.2);
}

.ex-switch-lang-options a img {
  margin-right: 0.5rem;
}

.ex-switch-lang-options a i {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  opacity: 0;
  font-size: 0.75rem;
  color: var(--success);
  transition: all 0.25s ease;
}

.ex-switch-lang-options a:hover i {
  right: 0.5rem;
  opacity: 1;
}

@media only screen and (min-width: 992px) {
  .ex-logo {
    transform: none;
  }
}

@media only screen and (min-width: 1200px) {
  .ex-navbar-nav {
    margin-left: 2.5rem;
  }

  .ex-navbar-link {
    padding: 0.5rem 1rem;
  }
}

/*---- sections ----*/
.ex-section+.ex-section {
  margin-top: 4.5rem;
}

.ex-section-header {
  margin-bottom: 1.5rem;
}

/* Professional Typography System - H2 Section Headers */
.ex-section-header h2 {
  margin-bottom: 2rem;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

@media only screen and (min-width: 568px) {
  .ex-section-header h2 {
    font-size: 22px;
  }
}

/*---- buttons ----*/
.ex-btn {
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 5px;
  box-shadow: 0 1px 2px #d3d8dd, 0 2px 4px #d3d8dd;
  font-weight: 700;
  letter-spacing: 0.05rem;
  transition: background-color 0.35s ease;
  cursor: pointer;
}

.ex-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.ex-btn:focus {
  outline: none;
}

.ex-primary-btn {
  background-color: var(--primary);
  color: #ffffff;
}

.ex-primary-btn:hover {
  background-color: var(--secondary);
}

.ex-success-btn {
  background-color: var(--success);
  color: #ffffff;
}

.ex-success-btn:hover {
  background-color: #068d3c;
  color: #ffffff;
}

.ex-fab-btn {
  position: fixed;
  right: 1rem;
  bottom: 0;
  transform: translateY(100%);
  padding: 0.25rem 0.75rem;
  font-size: 1.125rem;
  transition: all 0.35s ease;
}

.ex-fab-btn.active {
  bottom: 1rem;
  transform: translateY(0);
}

/*---- cards ----*/
.ex-card-container {
  margin: -1rem 0;
}

.ex-card-container .row {
  padding: 0.5rem;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.ex-card-container .row div[class*="col-"] {
  padding: 0.5rem;
}

.ex-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.ex-card-hover {
  transition: all 0.35s ease;
}

.ex-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 3px 9px;
}

/* cards / game card */
.ex-game-card {
  max-width: 186px;
  margin: 0 auto;
}

/* Professional Typography System - H3 Game Cards */
.ex-game-card h3 {
  margin-bottom: 1rem;
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.4;
}

.ex-game-card .ex-primary-btn {
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
}

/* cards / app card */
.ex-app-card {
  max-width: 300px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ex-app-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.4;
}

.ex-app-card .app-icon {
  width: 36px;
  margin-bottom: 1rem;
}

.ex-app-card .app-code {
  max-width: 120px !important;
  margin-bottom: 1rem !important;
}

.ex-app-card .ex-btn {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  border: 1px solid #ced6e4;
  box-shadow: none;
  color: var(--secondary);
}

.ex-app-card .ex-btn:hover {
  background-color: var(--secondary);
  color: #ffffff;
}

/* cards / payment card */
.ex-payment-card {
  position: relative;
  max-width: 240px;
  margin: 0 auto;
  padding: 0.25rem;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: 0px 1px 2px #d3d8dd, 0px 2px 4px #d3d8dd;
}

.ex-payment-card .circles {
  position: absolute;
  right: 0.375rem;
  bottom: 0.375rem;
  display: flex;
  opacity: 0.25;
}

.ex-payment-card .circles span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ex-payment-card .circles span:first-child {
  transform: translateX(4px);
  background-color: var(--secondary);
}

.ex-payment-card .circles span:last-child {
  background-color: var(--primary);
}

/* cards / currency card */
.ex-currency-card {
  height: 100%;
  padding: 1.5rem;
}

.ex-currency-card .ex-coins {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.ex-currency-card .ex-coins img {
  max-width: 60px;
  margin: 0.75rem;
}

/* cards / licence card */
.ex-license-card {
  position: relative;
  height: 100%;
  padding: 1.5rem;
}

.ex-license-card li {
  color: var(--text);
}

.ex-license-card li+li {
  margin-top: 0.25rem;
}

.ex-license-card li i {
  margin-right: 0.5rem;
  color: var(--primary);
}

.ex-license-card-img {
  width: 180px;
  margin: 1.5rem auto 0;
}

/* cards / country card */
.ex-country-card {
  display: block;
  border-radius: 5px;
  padding: 0.5rem 0;
  border: 1px solid #ffffff;
  overflow: hidden;
}

.ex-country-card,
.ex-country-card img {
  transition: all 0.25s ease;
}

.ex-country-card:hover {
  border: 1px solid #4c9eea20;
  box-shadow: 0px 1px 2px #d3d8dd, 0px 2px 4px #d3d8dd;
}

.ex-country-card:hover img {
  transform: scale(1.1);
}

@media screen and (min-width: 568px) {
  .ex-license-card-img {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    margin: 0;
    width: 150px;
  }

  .ex-game-card .ex-primary-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media screen and (min-width: 992px) {
  .ex-card-container {
    margin: -1.5rem 0;
  }

  .ex-card-container .row {
    padding: 0.75rem;
  }

  .ex-card-container .row div[class*="col-"] {
    padding: 0.75rem;
  }
}

@media screen and (min-width: 1200px) {
  .ex-payment-card {
    padding: 0.5rem 1rem;
  }

  .ex-payment-card .circles {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .ex-payment-card .circles span {
    width: 12px;
    height: 12px;
  }
}

/*---- swiper ----*/
.swiper .swiper-pagination {
  bottom: 0;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary);
}


.homepage-responsive-img {
  width: 80% !important;
  max-width: 100%;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* swiper / banner swiper */
.ex-banner-swiper {
  margin: 0 -1rem 1rem;
  padding: 1rem 1rem 1rem;
}

.ex-banner-swiper .swiper-slide {
  border: 2px solid var(--light);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px -1px rgba(50, 50, 93, 0.25),
    0 1px 3px -1px rgba(0, 0, 0, 0.3);
}

.ex-banner-swiper .swiper-pagination {
  bottom: 0;
}

/* swiper / app swiper */
.ex-app-swiper {
  margin-top: -1rem;
  padding: 1rem 0 2.5rem;
}

.ex-app-swiper .swiper-slide {
  height: auto;
  transition: padding 0.35s ease, opacity 0.35s ease;
}

.ex-app-swiper .swiper-slide img {
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.ex-app-swiper .swiper-slide:first-child,
.ex-app-swiper .swiper-slide:last-child {
  opacity: 0;
  transition: none;
}

.ex-app-swiper .swiper-slide:not(:first-child, :last-child, .swiper-slide-next) {
  padding: 1.5rem 1rem;
  opacity: 0.5;
}

@media only screen and (min-width: 768px) {
  .ex-banner-swiper {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
}

/*---- faqs ----*/
.ex-faqs {
  border: 1px solid #e1e1e1;
  border-radius: 0.5rem;
  background-color: #fafafa;
}

.ex-faqs-item+.ex-faqs-item {
  border-top: 1px solid #e1e1e1;
}

.ex-faqs-item>a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
}

.ex-faqs-item h2,
.ex-faqs-item h3,
.ex-faqs-item>a i {
  font-size: 1rem;
  color: var(--dark);
}

.ex-faqs-item h2,
.ex-faqs-item h3 {
  margin-bottom: 0;
}

.ex-faqs-item>a i {
  transition: transform 0.35s ease;
}

.ex-faqs-item>a[aria-expanded="true"] i {
  transform: rotateZ(90deg);
}

.ex-faqs-content {
  padding: 0 1.5rem;
}

.ex-faqs-content h3 {
  margin: 3rem 0 1rem;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.ex-faqs-content-list {
  list-style: square inside;
}

.ex-faqs-content-list li+li {
  margin-top: 0.75rem;
}

.ex-faqs-content-table,
.ex-faqs-content-table thead,
.ex-faqs-content-table tbody,
.ex-faqs-content-table tr {
  width: 100%;
}

.ex-faqs-content-table th,
.ex-faqs-content-table td {
  width: 50%;
  padding: 0.625rem 1.25rem;
  border: 1px solid #e1e1e1;
}

@media only screen and (min-width: 768px) {

  .ex-article,
  .ex-article-content {
    padding-top: 4.875rem;
  }

  h2.ex-article-title {
    font-size: 22px;
  }
}

/*---- footer ----*/
.ex-footer-wrapper {
  max-width: 768px;
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 2px solid #4c9eea40;
}

.ex-footer-social {
  margin-top: 3.5rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ex-footer-social li+li {
  margin-left: 0;
}

.ex-footer-social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary);
  font-size: 18px;
  color: #ffffff !important;
  transition: all 0.3s ease;
  text-decoration: none;
}

.ex-footer-social-link:hover {
  background-color: var(--secondary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ex-footer-link {
  color: var(--primary);
}

.ex-footer-link:hover {
  color: var(--secondary);
}

.ex-footer-link+.ex-footer-link {
  margin-left: 1.5rem;
}

@media only screen and (min-width: 768px) {
  .ex-footer-social {
    margin-top: 4.5rem;
    margin-bottom: 4.5rem;
    gap: 1rem;
  }

  .ex-footer-social-link {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* Tablet spacing adjustment */
@media only screen and (max-width: 767px) and (min-width: 481px) {
  .ex-footer-social {
    margin-top: 3rem;
    margin-bottom: 3.25rem;
    gap: 0.875rem;
  }

  .ex-footer-social-link {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Mobile spacing adjustment */
@media only screen and (max-width: 480px) {
  .ex-footer-social {
    margin-top: 2.75rem;
    margin-bottom: 2.75rem;
    gap: 0.625rem;
  }

  .ex-footer-social-link {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

/* Very small mobile adjustment */
@media only screen and (max-width: 360px) {
  .ex-footer-social {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    gap: 0.5rem;
  }

  .ex-footer-social-link {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

/*cusome style 8xbet.games*/

.wrapper {
  display: none;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  z-index: 999;
  position: fixed;
  width: 100%;
}

.loading {
  display: flex;
  position: fixed;
  z-index: 1;
}

.loading .dot {
  position: relative;
  width: 0.6em;
  height: 0.6em;
  margin: 0.6em;
  border-radius: 50%;
}

.loading .dot::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  animation: wave 2s ease-out infinite;
}

.loading .dot:nth-child(1) {
  background: #4c9eea;
}

.loading .dot:nth-child(1)::before {
  animation-delay: 0.2s;
}

.loading .dot:nth-child(2) {
  background: #1b83e4;
}

.loading .dot:nth-child(2)::before {
  animation-delay: 0.4s;
}

.loading .dot:nth-child(3) {
  background: #1b83e4;
}

.loading .dot:nth-child(3)::before {
  animation-delay: 0.6s;
}

.loading .dot:nth-child(4) {
  background: #386aad;
}

.loading .dot:nth-child(4)::before {
  animation-delay: 0.8s;
}

.loading .dot:nth-child(5) {
  background: #2f5890;
}

.loading .dot:nth-child(5)::before {
  animation-delay: 1s;
}

@keyframes wave {

  50%,
  75% {
    transform: scale(2.5);
  }

  80%,
  100% {
    opacity: 0;
  }
}

.done {
  display: none;
}

@media only screen and (min-width: 1200px) {
  .ex-license-card-img {
    width: 150px;
  }
}

@media only screen and (min-width: 1400px) {
  .ex-license-card-img {
    width: 180px;
  }
}

.texts table {
  border-collapse: separate;
  border-spacing: 0;
  border-width: 1px 0 0 1px;
  margin: 0 0 1.5em;
  width: 100%;
}

.texts table,
.texts td,
.texts th {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.texts tr {
  display: table-row;
  vertical-align: inherit;
  border-color: inherit;
}

.texts td,
.texts th {
  padding: 8px;
  border-width: 0 1px 1px 0;
}

.texts .entry-content p {
  margin-bottom: 1.6em;
}

.texts ul.ul-faq,
.ambb ul {
  list-style: disc;
}

.texts ol,
.texts ul.ul-faq,
.ambb ul {
  margin: 0 0 1.5rem 2rem;
}

.texts {
  margin: 3rem 0;
}

.ex-card .col-8,
.ambb .col-lg-7 {
  align-self: center;
}

.ambb {
  margin: 3rem 0;
}

.ambb h2 a {
  color: #212529;
}

.ambb .btn {
  background-color: #fac000;
  color: #ffffff;
  border-radius: 4px;
  padding-top: 8px;
  padding-right: 24px;
  padding-bottom: 8px;
  padding-left: 24px;
}

/* Blog style */
.blog-page {
  background-color: #f5f5f5;
}

.blog {
  padding: 2rem 0 0 0;
}

.card,
.cards {
  cursor: pointer;
}

.animated {
  background-image: linear-gradient(white, white),
    linear-gradient(180deg, #e9ecf1, #e9ecf1, #f6f7f9 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 200%;
  background-position: 0 0, 0 100%;
  background-origin: padding-box, border-box;
  animation: highlight 1s infinite alternate;
}

.card {
  background-image: linear-gradient(white, white),
    linear-gradient(270deg, #e9ecf1, #e9ecf1, #f6f7f9 100%);
  background-repeat: no-repeat;
  background-origin: padding-box, border-box;
  border: 6px solid transparent;
  box-sizing: border-box;
}

.card,
.cards {
  border-radius: 0;
  border: 6px solid #e8e8e8;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  overflow: hidden;
  box-shadow: 1px 1px 15px rgb(0 0 0 / 14%);
}

.card a,
.cards a {
  display: inline-block;
  width: 100%;
}

a {
  color: #4a4a4a;
  text-decoration: none;
}

.page-archive .card-body,
.content-detail .event-body {
  position: relative;
  z-index: 10;
  background-color: #fff;
}

.blog .card-body {
  flex: 1 1 auto;
  padding: 1.5rem;
}

.blog .category {
  text-decoration: none;
  color: #4c9eea;
  margin-bottom: 1rem;
  display: block;
}

.blog .btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1;
  color: #5b5b5c;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.8rem 1rem;
  border-radius: 0;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.comment .Author span,
.comment .update span {
  font-weight: 700;
  color: #4a4a4a;
}

.blog .btn-primary,
.blog-content .btn-primary {
  color: #fff;
  background-color: #4c9eea;
  border-color: #4c9eea;
  float: right;
}

.side .card .btn.btn-primary {
  float: none;
  text-align: center;
  margin: 0 auto 1rem;
  display: block;
  width: 60%;
}

.side .card-text.summary-news {
  margin-bottom: 1rem;
}

.blog a,
.content-page a {
  color: #4a4a4a;
  text-decoration: none;
}

.side .card-img {
  margin: 0 auto 1rem auto;
  text-align: center;
}

.container.content-detail .col-md-7 * {
  cursor: default;
}

.container.content-detail main .card:hover .card-body {
  background: #fff !important;
}

.container.content-detail .col-md-7.col-lg-8 .card-body img {
  width: 100%;
  height: auto;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  overflow: hidden;
  box-shadow: 1px 1px 15px rgb(0 0 0 / 14%);
}

.cards {
  box-shadow: 1px 1px 15px rgb(0 0 0 / 14%);
}

@keyframes animatedgradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.card>hr {
  margin-right: 0;
  margin-left: 0;
}

.card>.list-group {
  border-top: inherit;
  border-bottom: inherit;
}

.card>.list-group:first-child {
  border-top-width: 0;
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

.card>.list-group:last-child {
  border-bottom-width: 0;
  border-bottom-right-radius: calc(0.25rem - 1px);
  border-bottom-left-radius: calc(0.25rem - 1px);
}

.card>.card-header+.list-group,
.card>.list-group+.card-footer {
  border-top: 0;
}

.card {
  background-image: linear-gradient(white, white),
    linear-gradient(270deg, #e9ecf1, #e9ecf1, #f6f7f9 100%);
  background-repeat: no-repeat;
  background-origin: padding-box, border-box;

  border: 6px solid transparent;
  box-sizing: border-box;
}

.animated {
  background-image: linear-gradient(white, white),
    linear-gradient(180deg, #e9ecf1, #e9ecf1, #f6f7f9 100%);

  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 200%;
  background-position: 0 0, 0 100%;
  background-origin: padding-box, border-box;
  animation: highlight 1s infinite alternate;
}

@keyframes highlight {
  100% {
    background-position: 0 0, 0 0;
  }
}

.card:before {
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0);
  content: "";
  position: absolute;
  pointer-events: none;
  top: -5px;
  left: -5px;
  bottom: -5px;
  right: -5px;
}

.card:after {
  content: "";
  position: absolute;
  pointer-events: none;
  top: -15px;
  left: -5px;
  bottom: -15px;
  right: -5px;
  background-image: radial-gradient(hsla(0, 0%, 100%, 0.8) 15%,
      hsla(0, 0%, 100%, 0.15) 38%,
      hsla(0, 0%, 100%, 0) 50%),
    radial-gradient(hsla(0, 0%, 100%, 0.8) 15%,
      hsla(0, 0%, 100%, 0.15) 38%,
      hsla(0, 0%, 100%, 0) 50%),
    radial-gradient(hsla(0, 0%, 100%, 0.8) 15%,
      hsla(0, 0%, 100%, 0.35) 35%,
      hsla(0, 0%, 100%, 0.15) 40%,
      hsla(0, 0%, 100%, 0) 50%),
    radial-gradient(hsla(0, 0%, 100%, 0.8) 15%,
      hsla(0, 0%, 100%, 0.35) 35%,
      hsla(0, 0%, 100%, 0.15) 40%,
      hsla(0, 0%, 100%, 0) 50%);
  background-repeat: no-repeat;
  background-position: left -120px top 6px, right -120px bottom 5px,
    left 0 top -1px, right 0 bottom -2px;
  background-size: 300px 14px, 300px 14px, 60px 28px, 60px 28px;
  opacity: 0;
  transition: background-position 0.5s ease-out, opacity 0.5s ease-out;
  will-change: background-position, opacity;
}

.card:before {
  content: "";
  position: absolute;
  pointer-events: none;
  top: -15px;
  left: -5px;
  bottom: -15px;
  right: -5px;
  background-image: radial-gradient(hsla(0, 0%, 100%, 0.8) 15%,
      hsla(0, 0%, 100%, 0.15) 38%,
      hsla(0, 0%, 100%, 0) 50%),
    radial-gradient(hsla(0, 0%, 100%, 0.8) 15%,
      hsla(0, 0%, 100%, 0.15) 38%,
      hsla(0, 0%, 100%, 0) 50%),
    radial-gradient(hsla(0, 0%, 100%, 0.8) 15%,
      hsla(0, 0%, 100%, 0.35) 35%,
      hsla(0, 0%, 100%, 0.15) 40%,
      hsla(0, 0%, 100%, 0) 50%),
    radial-gradient(hsla(0, 0%, 100%, 0.8) 15%,
      hsla(0, 0%, 100%, 0.35) 35%,
      hsla(0, 0%, 100%, 0.15) 40%,
      hsla(0, 0%, 100%, 0) 50%);
  background-repeat: no-repeat;
  background-position: left -120px top 6px, right -120px bottom 5px,
    left 0 top -1px, right 0 bottom -2px;
  background-size: 300px 14px, 300px 14px, 60px 28px, 60px 28px;
  opacity: 0;
  transition: background-position 0.5s ease-out, opacity 0.5s ease-out;
  will-change: background-position, opacity;
}

.card:hover:after,
.card:hover:before {
  background-position: left calc(100% + 67px) top 6px,
    right calc(100% + 67px) bottom 5px, left calc(100% - 50px) top -1px,
    right calc(100% - 50px) bottom -1px;
  opacity: 0.9;
}

.card:hover {
  border-color: 5px solid rgba(255, 255, 255, 0.1);
}

.cards {
  overflow: hidden;
}

.zoom .card-img-top {
  transition: transform 0.7s ease-out, opacity 0.5s ease-out;
}

.zoom:hover .card-img-top {
  transform: scale(1.2);
}

.blogt .card-body,
.blog .card-body {
  position: relative;
  z-index: 10;
  background-color: #fff;
}

.category {
  text-decoration: none;
  color: #4c9eea;
  margin-bottom: 1rem;
  display: block;
}

.card a {
  display: inline-block;
  width: 100%;
}

.card-img-top,
.card-img-bottom {
  width: 100%;
}

.card:hover .card-body {
  background: #c6c6c6;
  background: linear-gradient(0deg,
      rgba(226, 227, 228, 1) 0%,
      rgba(250, 250, 250, 1) 100%);
}

.content-detail .comment {
  display: flex;
}

.content-detail .card .prev {
  position: absolute;
  left: 0;
  right: auto;
  cursor: pointer !important;
}

.content-detail .card .next {
  position: absolute;
  right: 0;
  cursor: pointer !important;
}

.content-detail .b-btn {
  position: relative;
  width: 100%;
  height: 50px;
}

.content-detail .card a {
  display: inline-block;
  width: auto !important;
}

@media (max-width: 576px) {

  .content-detail .comment,
  .content-detail .comment .update,
  .content-detail .comment a {
    display: block;
    position: static;
  }

  .content-detail .update.next a {
    display: inline;
  }

  .page-content .col-md-7.col-lg-8 {
    padding: 0;
  }

  .side {
    display: none;
  }

  .blog .mb-5,
  .blog .mb-4 {
    margin-bottom: 1rem !important;
    padding: 0;
  }

  .blog .card,
  .blog-content .card {
    border: none;
    box-shadow: 0 0 3px rgb(0 0 0 / 15%);
  }

  .blog .card {
    display: table;
    width: 100%;
    padding: 1rem;
  }

  .blog .category {
    padding-bottom: 0.5rem;
    margin-bottom: 0;
  }

  .blog h3 {
    font-size: 1rem;
  }

  .card-title {
    margin-bottom: 0.5rem;
  }

  .blog .summary-news a {
    /* overflow: hidden; */
    display: inline-block;
    /* height: 50px; */
    line-height: 25px;
  }

  .blog .card-img {
    display: block;
    width: 50%;
    padding-bottom: 0;
    margin: 0 auto;
  }

  .card {
    border: none;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
  }

  .cards {
    border: none;
    box-shadow: none;
  }

  .page-archive .card .btn.btn-primary,
  .page-archive .card .coment {
    display: none;
  }

  .page-archive .card-body {
    vertical-align: top;
  }

  .page-archive .card-body,
  .event-txt {
    display: inline-block;
    width: auto;
    padding: 0;
    padding-left: 1rem;
    vertical-align: top;
  }

  .page-archive .card {
    display: table;
    width: 100%;
    padding: 1rem;
  }

  .blog section h2 {
    padding-left: 1rem;
    padding-bottom: 0.5rem;
  }

  .page-archive .zoom:hover .card-img-top {
    transform: scale(1);
  }

  .page-archive .card-img {
    display: table-cell;
    width: 40%;
    padding-bottom: 0;
    vertical-align: middle;
  }

  .card-img {
    display: table-cell;
    width: 40%;
    padding-bottom: 0;
  }

  .blog .card .btn.btn-primary,
  .blog .card .coment,
  .blog .posts .summary-news,
  .blog .events .card-text {
    display: none;
  }

  .blog-content .blog .card .btn.btn-primary {
    display: inline;
  }
}

@media (min-width: 992px) {
  .container.posts .card-text.summary-news {
    overflow: hidden;
    display: inline-block;
    height: 120px;
  }

  .blog .card-title {
    min-height: 100px;
  }
}

@media (max-width: 768px) {
  .lang-block {
    display: block;
    width: auto;
  }
}

@media (max-width: 1480px) {
  .ex-navbar-link {
    padding: 0.5rem 0.2rem;
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
  }
}

.ex-switch-lang.mr-3.ml-auto {
  display: inline-block;
  vertical-align: middle;
}

@media (min-width: 1200px) and (max-width: 1480px) {
  .ex-navbar-link {
    padding: 0.5rem 0.39rem;
    font-size: 15px;
  }
}

.ex-footer-link {
  color: #4c9eea !important;
}

.ex-footer-link:hover {
  color: #258890 !important;
}

@media screen and (max-width: 375px) {
  .ex-navbar .ml-auto {
    text-align: right;
  }

  .ex-logo {
    width: 6rem;
  }

  .ex-switch-lang.mr-3.ml-auto {
    margin-right: 0.2rem;
  }
}

.ex-footer-link {
  color: #4c9eea !important;
}

.ex-footer-link:hover {
  color: #258890 !important;
}

/*****Live Stream Css********/

#stream .ex-embed-container {
  padding-bottom: calc(360 / 960 * 100%) !important;
}

#stream .ex-embed-container {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

#stream .row {
  border-radius: 5px;
  box-shadow: -2px -2px 6px #d3d8dd, 3px 6px 6px #d3d8dd;
  margin: 0;
}

#stream .ex-embed-container:first-child iframe {
  border: none;
  border-radius: 5px 0 0 5px;
}

#stream .ex-embed-container:last-child iframe {
  border: none;
  border-radius: 0 5px 5px 0;
}

@media only screen and (max-width: 991.9px) {
  #stream .ex-embed-container:first-child {
    padding-bottom: calc(360 / 650 * 100%) !important;
    border-radius: 5px 5px 0 0;
  }

  #stream .ex-embed-container:last-child {
    padding-bottom: calc(360 / 300 * 100%) !important;
    border-radius: 0 0 5px 5px;
  }

  #stream .ex-embed-container:first-child iframe {
    border-radius: 0 !important;
  }

  #stream .ex-embed-container:last-child iframe {
    border-radius: 0 0 5px 5px;
  }
}

@media only screen and (max-width: 567.9px) {
  #stream .ex-embed-container:last-child {
    padding-bottom: calc(360 / 200 * 100%) !important;
    border-radius: 0 0 5px 5px;
  }
}

/******Chat widget Css******/

.sticky-chat {
  background-color: #4c9eea;
  position: sticky;
  bottom: 16px;
  left: 16px;
  z-index: 99;
  border-radius: 24px;
  width: 48px;
  height: 48px;
  text-align: center;
}

.sticky-chat a {
  padding-top: 10px;
  width: 100%;
  height: 100%;
  display: inline-block;
}

.sticky-chat img {
  margin: 0 auto;
  text-align: center;
  width: 24px;
  height: 24px;
}

.hvr-grow {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: transform;
  transition-property: transform;
}

.hvr-grow:hover,
.hvr-grow:focus,
.hvr-grow:active {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
  box-shadow: 0 1px 2px #a8bed4, 0 2px 2px #a8bed4;
}

.swiper-slide video,
.swiper-slide img {
  height: 100%;
}

.swiper-slide {
  height: 100%;
}

.home.blog {
  padding-top: 0;
}

/*making server images small*/
.ex-card-container .row {
  text-align: center !important;
}

.ex-country-card {
  text-align: center !important;
}

.ex-country-card img {
  width: 80%;
  text-align: center;
}

/* Mobile optimizations for blog cards */
/* Desktop blog card styles */
@media (min-width: 769px) {
  .ex-blog-card {
    height: 700px;
  }
  
  .ex-blog-card-img {
    height: 200px;
    overflow: hidden;
  }
  
  .ex-blog-card-body {
    height: 500px;
  }
}

/* Archive page specific styles */
.page-archive .ex-blog-card {
  height: 780px; /* Increased from 750px for better spacing */
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.page-archive .ex-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-archive .ex-blog-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.page-archive .ex-blog-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-archive .ex-blog-card:hover .ex-blog-card-img img {
  transform: scale(1.05);
}

.page-archive .ex-blog-card-body {
  height: 580px; /* Increased from 550px to accommodate better spacing */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.page-archive .category {
  color: #4c9eea;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
  font-size: 14px;
  text-transform: uppercase;
}

.page-archive .ex-blog-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #333;
  text-decoration: none;
}

.page-archive .ex-blog-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.page-archive .coment {
  margin-top: 1.5rem; /* Changed from auto to fixed spacing */
  margin-bottom: 1.5rem; /* Equal spacing above and below */
  padding: 0;
}

.page-archive .coment p {
  margin-bottom: 0.5rem;
  font-size: 13px;
  color: #888;
}

.page-archive .btn-primary {
  background-color: #4c9eea;
  border-color: #4c9eea;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 600;
  text-align: center;
  margin-top: 0; /* Ensure no extra margin on button */
}

.page-archive .btn-primary:hover {
  background-color: #3a8bdf;
  border-color: #3a8bdf;
  transform: translateY(-2px);
}

/* Performance optimizations for cards */
.ex-blog-card {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.ex-blog-card-img img {
  will-change: transform;
  backface-visibility: hidden;
}

/* Lazy loading optimization */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([loading]) {
  opacity: 1;
}

/* Screen reader only class for SEO headings */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Category Archive Header Design */
.category-header-section {
  background: linear-gradient(135deg, #4c9eea 0%, #3a8bdf 100%);
  padding: 4rem 0 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.category-header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.category-header-content {
  position: relative;
  z-index: 2;
}

.category-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.category-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.6;
}

.category-divider {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 2rem;
}

.divider-line {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  display: block;
}

.divider-icon {
  margin: 0 1rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
}

/* Posts Section Header */
.posts-section {
  margin-bottom: 4rem;
}

.posts-header {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.posts-section-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.posts-section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #4c9eea, #3a8bdf);
  border-radius: 2px;
}

.posts-section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 0;
  font-weight: 400;
  max-width: 500px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .category-header-section {
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
  }
  
  .category-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .category-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .posts-section-title {
    font-size: 1.8rem;
  }
  
  .posts-section-subtitle {
    font-size: 1rem;
  }
  
  .posts-header {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
  }
  
  .divider-line {
    width: 40px;
  }
  
  .divider-icon {
    padding: 0.6rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .category-title {
    font-size: 1.8rem;
  }
  
  .posts-section-title {
    font-size: 1.5rem;
  }
  
  .category-header-section {
    padding: 2rem 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .blog .card,
  .ex-blog-card {
    height: auto !important;
    max-height: none !important;
  }
  
  .blog .card-img,
  .ex-blog-card-img {
    height: 180px !important;
    overflow: hidden;
  }
  
  .blog .card-body,
  .ex-blog-card-body {
    height: auto !important;
    padding: 1rem !important;
  }
  
  .blog .card-title,
  .ex-blog-title {
    font-size: 16px !important;
    line-height: 1.4 !important;
    height: auto !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    margin-bottom: 0.75rem !important;
  }
  
  .blog .card-text.summary-news,
  .ex-blog-excerpt {
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    line-height: 1.4 !important;
    height: auto !important;
    margin-bottom: 1rem !important;
  }
  
  .blog .coment {
    margin-top: 0.75rem !important;
  }
  
  .blog .btn {
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
  }
}

@media (max-width: 576px) {
  .blog .card,
  .ex-blog-card {
    margin-bottom: 1.5rem !important;
  }
  
  .blog .card-img,
  .ex-blog-card-img {
    height: 160px !important;
  }
  
  .blog .card-title,
  .ex-blog-title {
    font-size: 15px !important;
  }
  
  .blog .card-text.summary-news,
  .ex-blog-excerpt {
    font-size: 14px !important;
  }
  
  .blog .btn {
    font-size: 13px !important;
    padding: 0.4rem 0.8rem !important;
  }
}

/*Brand ambassador Vedios Css*/
.slick-slider {
  position: relative;
  display: block;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -khtml-user-select: none;
  -ms-touch-action: pan-y;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.slick-track {
  position: relative;
  top: 0;
  left: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.slick-slide {
  display: none;
  float: left;
  height: 100%;
  min-height: 1px;
}

.slick-prev,
.slick-next {
  font-size: 0;
  line-height: 0;
  box-shadow: 0px 0px 20px #898989;
  position: absolute;
  top: 50%;
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  cursor: pointer;
  z-index: 1;
  color: transparent;
  border: none;
  outline: none;
  background: transparent;
  border-radius: 5px;
  /* padding: 21px; */
  width: 46px;
  height: 46px;
  border: 2px solid white;
  border-radius: 25px;
  transition: all 0.3s;
  opacity: 0.8;
  background: #4c4c4c8f;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slick-prev {
  left: 5px;
}

.slick-next {
  right: 5px;
}

.slick-next::after {
  content: "next";
  font-family: swiper-icons;
  text-transform: none !important;
  letter-spacing: 0;
  font-variant: initial;
  line-height: 1;
  font-size: 20px !important;
  color: white !important;
  -webkit-animation: bounce_next 2s infinite;
  animation: bounce_next 2s infinite;
}

.slick-prev::after {
  content: "prev";
  font-family: swiper-icons;
  text-transform: none !important;
  letter-spacing: 0;
  font-variant: initial;
  line-height: 1;
  font-size: 20px !important;
  color: white !important;
  -webkit-animation: bounce_prev 2s infinite;
  animation: bounce_prev 2s infinite;
}

.slick-initialized .slick-slide {
  display: block;
}

.slick-slider.slider-for {
  border: 2px solid #f8f9fa;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px -1px rgb(50 50 93 / 25%),
    0 1px 3px -1px rgb(0 0 0 / 30%);
}

.ex-embed-container {
  position: relative;
  padding-bottom: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: none;
}

.ex-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* pointer-events: none; */
}

.slider-nav .slick-list {
  width: 50%;
  margin: 0 auto;
}

.slider-nav .slick-slide {
  padding: 15px;
  outline: none !important;
}

.slick-initialized .slick-slide {
  display: block;
}

.slider-nav .slick-slide .video-container {
  /* padding: 5px; */
  background-color: #fff;
  box-shadow: 0px 0px 10px rgb(68 68 68);
  position: relative;
  border: 2px solid var(--light);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px -1px rgb(50 50 93 / 25%),
    0 1px 3px -1px rgb(0 0 0 / 30%);
}

.slider-nav .slick-slide .video-container img {
  width: 100%;
}

.slick-slide img {
  display: block;
}

.slider-nav .slick-slide .video-container .cover {
  position: absolute;
  height: 100%;
  background-color: #0000007d;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav .slick-slide.slick-current .cover {
  display: none;
}

.slider-nav .slick-slide .video-container .cover img {
  width: 50px;
}

.bounce_prev {
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

/* Scroll left indicator (bouncing) */
@-webkit-keyframes bounce_prev {

  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateX(0);
  }

  40% {
    -webkit-transform: translateX(-10px);
  }

  60% {
    -webkit-transform: translateX(-5px);
  }
}

@-moz-keyframes bounce_prev {

  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateX(0);
  }

  40% {
    -moz-transform: translateX(-10px);
  }

  60% {
    -moz-transform: translateX(-5px);
  }
}

@keyframes bounce_prev {

  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }

  40% {
    -webkit-transform: translateX(-10px);
    -moz-transform: translateX(-10px);
    -ms-transform: translateX(-10px);
    -o-transform: translateX(-10px);
    transform: translateX(-10px);
  }

  60% {
    -webkit-transform: translateX(-5px);
    -moz-transform: translateX(-5px);
    -ms-transform: translateX(-5px);
    -o-transform: translateX(-5px);
    transform: translateX(-5px);
  }
}

/* Scroll right indicator (bouncing) */
@-webkit-keyframes bounce_next {

  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateX(0);
  }

  40% {
    -webkit-transform: translateX(10px);
  }

  60% {
    -webkit-transform: translateX(5px);
  }
}

@-moz-keyframes bounce_next {

  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateX(0);
  }

  40% {
    -moz-transform: translateX(10px);
  }

  60% {
    -moz-transform: translateX(5px);
  }
}

@keyframes bounce_next {

  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }

  40% {
    -webkit-transform: translateX(10px);
    -moz-transform: translateX(10px);
    -ms-transform: translateX(10px);
    -o-transform: translateX(10px);
    transform: translateX(10px);
  }

  60% {
    -webkit-transform: translateX(5px);
    -moz-transform: translateX(5px);
    -ms-transform: translateX(5px);
    -o-transform: translateX(5px);
    transform: translateX(5px);
  }
}

/*new css for iphone*/
@media screen and (min-width: 1024px) {

  .swiper-slide video,
  .swiper-slide img {
    height: 100%;
    object-fit: initial;
  }
}

@media screen and (max-width: 1023px) {

  .swiper-slide video,
  .swiper-slide img {
    height: auto !important;
  }
}

/*----------sidemenu----------*/

#sidebar-wrapper {
  background-color: #fff;
  position: fixed;
  top: 0;
  display: block;
  left: 0;
  -webkit-animation: ftwpZoomIn 0.5s ease-out forwards;
  animation: ftwpZoomIn 0.5s ease-out forwards;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: rgb(255, 255, 255);
  background-color: #4c9eea;
}

#sidebar-wrapper .sidebar-heading {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  border-bottom: solid 1px #4c9eea40;
}

#sidebar-wrapper .nav.flex-column {
  width: 15rem;
}

#sidebar-wrapper {
  margin-left: -16rem;
  transition: margin 0.25s ease-out;
  z-index: 999;
}

.nav-link {
  position: relative;
  display: block;
  color: #4a4a4a;
  background-color: #fff;
  border-bottom: solid 1px #4c9eea40;
  font-size: 0.9rem !important;
}

.border {
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgb(222, 226, 230) !important;
  border-image: initial !important;
}

.nav-link {
  width: 100%;
  color: #4a4a4a;
  text-align: inherit;
  border-radius: 0 !important;
}

.nav-link {
  display: block;
  color: #4c9eea;
  padding: 0.4rem 1rem;
  text-decoration: none;
}

#page-content-wrapper {
  min-width: 100vw;
}

.sb-sidenav-toggled #sidebar-wrapper {
  margin-left: 0;
  z-index: 9999;
  box-shadow: 4px 4px 15px rgb(163 164 167);
}

@media (min-width: 768px) {
  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }

  .sb-sidenav-toggled #sidebar-wrapper {
    margin-left: 0rem;
  }
}

.fixed-btn {
  display: flex;
  justify-content: right;
  padding: 1rem;
}

#sidebar-wrapper {
  min-height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
  top: 4.5rem;
  display: block;
  height: auto;
  max-height: calc(100vh - 5rem);
  left: 0;
  -webkit-animation: ftwpZoomIn 0.5s ease-out forwards;
  animation: ftwpZoomIn 0.5s ease-out forwards;
}

#page-content-wrapper {
  min-width: 0;
  width: 100%;
}

.btn.btn-primary.sidemenubtn {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  width: 48px;
  height: 48px;
  overflow-y: auto;
  background-color: #4c9eea;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  padding: 0 !important;
  z-index: 999;
}

@media (max-width: 998px) {
  .sidemenubtn {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
  }
}

.list-group-item:active {
  background-color: #4c9eea;
}

.btn-close {
  display: block;
  direction: rtl;
  position: absolute;
  right: 1rem;
  top: 0.4rem;
  border: none;
  background: #fff;
  cursor: pointer;
}

button.btn.btn-primary.btn-close {
  background: transparent;
  border: none;
  padding: 0.2rem;
}

.sb-sidenav-toggled .fixed-btn .sidemenubtn {
  display: none;
}

#sidebar-wrapper::-webkit-scrollbar {
  width: 10px;
}

.nav-link.p-3 {
  padding: 0.3rem 1rem !important;
}

/* Track */
#sidebar-wrapper::-webkit-scrollbar-track {
  box-shadow: inset 0 0 2px #e3e3e340;
  border-radius: 10px;
}

/* Handle */
#sidebar-wrapper::-webkit-scrollbar-thumb {
  background: #9d9e9f40;
  border-radius: 10px;
}

/* Handle on hover */
#sidebar-wrapper::-webkit-scrollbar-thumb:hover {
  background: #9d9e9f40;
}

/* Table of Contents Styling */
.table-of-contents {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.table-of-contents li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.table-of-contents li:before {
  content: none !important;
  display: none !important;
}

.table-of-contents .nav-link {
  border-bottom: 1px solid #4c9eea20;
  transition: all 0.3s ease;
}

.table-of-contents .nav-link:hover {
  background-color: #4c9eea10;
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
}

.table-of-contents .nav-link:focus,
.table-of-contents .nav-link.active {
  background-color: #4c9eea15;
  border-left: 3px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Offset for fixed header when jumping to sections */
#games,
#why-8xbet,
#networks,
#app,
#payment-methods,
#blogs {
  scroll-margin-top: 100px;
}

/* Sweep To Right */
.hvr-sweep-to-right {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  position: relative;
  -webkit-transition-property: color;
  transition-property: color;
  -webkit-transition-duration: 0.6s;
  transition-duration: 0.6s;
}

.hvr-sweep-to-right:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #4c9eea;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: 0 50%;
  transform-origin: 0 50%;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-duration: 0.6s;
  transition-duration: 0.6s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}

.hvr-sweep-to-right:hover,
.hvr-sweep-to-right:focus,
.hvr-sweep-to-right:active {
  color: white;
}

.hvr-sweep-to-right:hover:before,
.hvr-sweep-to-right:focus:before,
.hvr-sweep-to-right:active:before {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

/*------END----sidemenu--------*/
/*--mataches cards css--*/
.match-card-head {
  background-color: #4c9eea;
  color: white;
}

.ex-card p.team-name {
  margin: 0;
  min-height: 4rem;
}

.ex-card-container .ex-card .row {
  padding: 0;
}

.match-card-head {
  padding: 0.5rem;
}

.ex-card .row.d-flex.justify-content-around {
  width: 100%;
  margin: 0;
}

.ex-card.match-card img {
  max-width: 100%;
  height: 60px;
  width: auto !important;
}

.ex-card-container .ex-card.match-card {
  border-radius: 4px;
}

/*-------Footer--------*/
.footer-col .ex-logo img {
  width: 50%;
}

.footer-col p {
  margin-bottom: 0;
}

.footer-col h3 {
  position: relative;
  margin-bottom: 1.5rem;
}

.footer-col h3::before {
  bottom: -0.5rem;
  content: '';
  width: 2rem;
  height: 2px;
  position: absolute;
  border-bottom: 2px solid #e1e1e1;
}

@media screen and (max-width: 575px) {
  .footer-col h3 {
    margin: 1.5rem 0;
    font-size: 0.95rem;
  }
}

/* End footer*/
/*Responsive Top menu*/
.menuicon {
  display: none;
}

@media screen and (max-width: 991px) {
  /* Mobile Navbar Container */
  .ex-navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 0 !important;
    position: relative;
  }
  
  .ex-navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  
  /* Logo Alignment */
  .ex-logo {
    display: flex !important;
    align-items: center !important;
    height: 45px !important;
    transform: none !important;
  }
  
  .ex-logo img {
    max-height: 40px !important;
    width: auto !important;
  }
  
  /* Hide main navigation on mobile by default */
  .ex-navbar-nav {
    display: none !important;
  }
  
  /* Show navigation when toggled */
  .ex-navbar-nav.show {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 0.5rem;
    padding: 1rem 0;
    animation: slideDown 0.3s ease-out;
  }
  
  .ex-navbar-nav.show .ex-navbar-item {
    display: block !important;
    width: 100%;
  }
  
  .ex-navbar-nav.show .ex-navbar-link {
    display: block !important;
    padding: 1rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .ex-navbar-nav.show .ex-navbar-item:last-child .ex-navbar-link {
    border-bottom: none;
  }
  
  .ex-navbar-nav.show .ex-navbar-link:hover {
    background: #f8f9fa;
    color: #007bff;
    padding-left: 2rem;
  }
  
  .ex-navbar-nav.show .ex-navbar-link:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #007bff;
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }
  
  .ex-navbar-nav.show .ex-navbar-link:hover:before {
    transform: scaleY(1);
  }
  
  /* Animation for mobile menu */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Mobile Menu Icon */
  .menuicon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px;
    height: 45px;
    padding: 0.5rem;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    background: #ffffff;
    margin-left: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
  }
  
  .menuicon:hover {
    border-color: #007bff;
    background: #f8f9fa;
  }
  
  .menuicon img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: block;
    object-fit: contain;
  }
  
  /* Ensure proper positioning for mobile menu */
  .topnav {
    position: relative;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .menuicon {
    margin-left: 0.5rem;
  }
  
  .topnav #myLinks a {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 390px) {
  .ex-navbar {
    padding: 0.75rem 0 !important;
  }
  
  .ex-logo {
    height: 40px !important;
  }
  
  .ex-logo img {
    max-height: 35px !important;
  }
  
  .topnav #myLinks a {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  
  .menuicon {
    width: 40px;
    height: 40px;
    margin-left: 0.5rem;
  }
  
  .menuicon img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }
}

/* End Responsive Top menu*/

/*Change container in desktop and responsive table*/
@media (min-width: 1400px) {
  .container {
    max-width: 1320px !important;
  }
}

.table-striped.table-bordered td,
.table-striped.table-bordered th {
  line-break: anywhere;
}

/*End change container in desktop and responsive table*/

/* Multi-Image Slider Styles */
.slider-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.slide {
  display: none;
  position: relative;
  width: 100%;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.slider-dots {
  text-align: center;
  padding: 20px 0;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot:hover,
.dot.active {
  background-color: var(--primary);
}

/* Responsive slider */
@media (max-width: 768px) {
  .slider-btn {
    padding: 10px 15px;
    font-size: 16px;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .dot {
    height: 12px;
    width: 12px;
    margin: 0 3px;
  }
}

@media (max-width: 480px) {
  .slider-btn {
    padding: 8px 12px;
    font-size: 14px;
  }

  .prev-btn {
    left: 5px;
  }

  .next-btn {
    right: 5px;
  }
}

/* End Multi-Image Slider Styles */

/* Scrollable Content Section */
.scrollable-content-container {
  height: 750px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 3rem 2.5rem;
  background-color: #fafafa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.scrollable-content-container::-webkit-scrollbar {
  width: 8px;
}

.scrollable-content-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.scrollable-content-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.scrollable-content-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.scrollable-content-inner {
  padding-right: 1.5rem;
  line-height: 1.7;
}

/* Content spacing within scrollable container */
.scrollable-content-inner>*:first-child {
  margin-top: 0;
}

.scrollable-content-inner>*:last-child {
  margin-bottom: 0;
}

.scrollable-content-inner h2,
.scrollable-content-inner h3,
.scrollable-content-inner h4 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.scrollable-content-inner h2:first-child,
.scrollable-content-inner h3:first-child,
.scrollable-content-inner h4:first-child {
  margin-top: 0;
}

.scrollable-content-inner p {
  margin-bottom: 2rem;
}

.scrollable-content-inner figure {
  margin: 2rem 0;
}

/* Responsive heights for different screen sizes */
@media (max-width: 1200px) {
  .scrollable-content-container {
    height: 500px;
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .scrollable-content-container {
    height: 400px;
    padding: 2rem 1.5rem;
  }

  .scrollable-content-inner {
    padding-right: 1rem;
  }

  .scrollable-content-inner h2,
  .scrollable-content-inner h3,
  .scrollable-content-inner h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .scrollable-content-inner p {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .scrollable-content-container {
    height: 320px;
    padding: 1.5rem 1rem;
    border-radius: 8px;
  }

  .scrollable-content-inner {
    padding-right: 0.75rem;
  }

  .scrollable-content-inner h2,
  .scrollable-content-inner h3,
  .scrollable-content-inner h4 {
    font-size: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .scrollable-content-inner p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }
}

/* End Scrollable Content Section */

/* Section Spacing */
.section-spacing {
  margin-bottom: 3rem;
}

.section-spacing:first-child {
  margin-bottom: 1.5rem;
}

.section-spacing:last-child {
  margin-bottom: 0;
}

/* Responsive section spacing */
@media (max-width: 768px) {
  .section-spacing {
    margin-bottom: 2.5rem;
  }
  
  .section-spacing:first-child {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .section-spacing {
    margin-bottom: 2rem;
  }
  
  .section-spacing:first-child {
    margin-bottom: 0.5rem;
  }
}

/* End Section Spacing */

/* Ensure navigation and footer lists don't get content styling */
.ex-navbar-nav,
.ex-navbar-nav ul,
.ex-navbar-nav li,
.ex-footer-social,
.ex-footer-social ul,
.ex-footer-social li,
.topnav ul,
.topnav li,
#myLinks,
#myLinks ul,
#myLinks li,
nav ul,
nav li,
header ul,
header li,
footer ul,
footer li {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}

.ex-navbar-nav li:before,
.ex-navbar-nav ul li:before,
.ex-footer-social li:before,
.ex-footer-social ul li:before,
.topnav li:before,
.topnav ul li:before,
#myLinks li:before,
#myLinks ul li:before,
nav li:before,
nav ul li:before,
header li:before,
header ul li:before,
footer li:before,
footer ul li:before {
  content: none !important;
  display: none !important;
}

/* Professional Typography System - H3 Content Headers */
.ex-content h3,
.scrollable-content-container h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
}

.ex-content ul,
.scrollable-content-container ul,
.page-archive ul,
.blog ul {
  list-style: none;
  margin: 1.5rem 0;
  padding-left: 0;
}

.ex-content ol,
.scrollable-content-container ol,
.page-archive ol,
.blog ol {
  list-style: none;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  counter-reset: list-counter;
}

.ex-content ul li,
.scrollable-content-container ul li,
.page-archive ul li,
.blog ul li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 2rem;
  line-height: 1.6;
}

.ex-content ul li:before,
.scrollable-content-container ul li:before,
.page-archive ul li:before,
.blog ul li:before {
  content: "●";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2em;
}

.ex-content ol li,
.scrollable-content-container ol li,
.page-archive ol li,
.blog ol li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 1rem;
  line-height: 1.6;
  counter-increment: list-counter;
}

.ex-content ol li:before,
.scrollable-content-container ol li:before,
.page-archive ol li:before,
.blog ol li:before {
  content: counter(list-counter) ".";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
  top: 0;
  min-width: 1.5rem;
}

/* Nested lists */
.ex-content ul ul,
.scrollable-content-container ul ul,
.page-archive ul ul,
.blog ul ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.ex-content ul ul li:before,
.scrollable-content-container ul ul li:before,
.page-archive ul ul li:before,
.blog ul ul li:before {
  content: "○";
  font-size: 1em;
}

.ex-content ol ol,
.scrollable-content-container ol ol,
.page-archive ol ol,
.blog ol ol {
  list-style: none;
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

/* Remove paragraphs inside list items margin */
.ex-content li p,
.scrollable-content-container li p,
.page-archive li p,
.blog li p {
  margin: 0;
  line-height: inherit;
}

/* Responsive list styling */
@media (max-width: 768px) {

  .ex-content ul li,
  .scrollable-content-container ul li,
  .page-archive ul li,
  .blog ul li {
    padding-left: 1.5rem;
  }

  .ex-content ol,
  .scrollable-content-container ol,
  .page-archive ol,
  .blog ol {
    padding-left: 1rem;
  }
}

/* End Content Lists Styling */

/* Professional Typography System - H1 Headlines */
.ex-banner h1 {
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #4C9EEA;
}

@media only screen and (min-width: 768px) {
  .ex-banner h1 {
    font-size: 28px !important;
  }
}

@media only screen and (max-width: 567px) {
  .ex-banner h1 {
    font-size: 24px !important;
  }
}
/* End Professional Typography System - H1 Headlines */

/* Professional Typography System - Global Base Rules */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* H3 - Global Subsection Headers */
h3 {
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #333;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

/* H3 - Section specific override for consistency */
.ex-section h3 {
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.4;
}

/* H4 - Minor Headings */
h4 {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

/* H5 - Small Headings */
h5 {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

/* H6 - Minimal Headings */
h6 {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* Address Section Footer Lists - Override footer list restrictions */
.ex-section.footer-col ul {
  list-style: disc !important;
  padding-left: 1.2rem !important;
}

.ex-section.footer-col ul li {
  list-style: disc !important;
  margin-bottom: 0.3rem !important;
}

/* Single Post Page Styling */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.single-post-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-categories {
    margin-top: 0.5rem;
}

.post-categories .badge {
    background-color: #007bff;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    margin-right: 0.5rem;
}

.post-categories .badge:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.post-featured-image {
    margin: 2rem 0;
    text-align: center;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.post-featured-image img:hover {
    transform: scale(1.02);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Typography Hierarchy for Post Content */
.post-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2.5rem 0 1.5rem 0;
    line-height: 1.3;
    border-bottom: 3px solid #007bff;
    padding-bottom: 0.5rem;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 2rem 0 1.2rem 0;
    line-height: 1.4;
    position: relative;
}

.post-content h2::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 2px;
}

.post-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #3a3a3a;
    margin: 1.8rem 0 1rem 0;
    line-height: 1.4;
}

.post-content h4 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #4a4a4a;
    margin: 1.5rem 0 0.8rem 0;
    line-height: 1.5;
}

.post-content h5 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #5a5a5a;
    margin: 1.2rem 0 0.6rem 0;
    line-height: 1.5;
}

.post-content h6 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #6a6a6a;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Post Content Images */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Image Captions */
.post-content .wp-caption,
.post-content figcaption,
.post-content .wp-caption-text {
    text-align: center !important;
    font-style: italic;
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.post-content .wp-caption {
    max-width: 100% !important;
    margin: 1.5rem auto !important;
}

.post-content .wp-caption img {
    margin: 0 !important;
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-link {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.nav-link .nav-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    opacity: 0.7;
}

.nav-link .nav-title {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .single-post-container {
        padding: 1rem;
        margin: 1rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-content h1 {
        font-size: 1.8rem;
    }

    .post-content h2 {
        font-size: 1.6rem;
    }

    .post-content h3 {
        font-size: 1.4rem;
    }

    .post-content h4 {
        font-size: 1.2rem;
    }

    .post-content h5 {
        font-size: 1.1rem;
    }

    .post-content h6 {
        font-size: 1rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-link {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.75rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-content h2::before {
        left: -10px;
    }
}

/* Sidebar Blog Card Image Styling for Single Post Page */
.sidebar .ex-blog-card-img {
    height: 140px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f9fa !important;
}

.sidebar .ex-blog-card-img img {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.sidebar .ex-blog-card:hover .ex-blog-card-img img {
    transform: scale(1.05) !important;
}

/* Fallback image container styling */
.sidebar .ex-blog-card-img div {
    height: 140px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}

/* Ensure card image container takes full width */
.sidebar .card-img {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
}

/* Fallback image styling */
.sidebar .fallback-image-container {
    height: 140px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.sidebar .fallback-content {
    text-align: center !important;
}

.sidebar .fallback-img {
    max-width: 100px !important;
    max-height: 70px !important;
    opacity: 0.7 !important;
}

.sidebar .fallback-text {
    margin: 8px 0 0 0 !important;
    color: #6c757d !important;
    font-size: 12px !important;
}

/* ===============================================
   ELEGANT SINGLE POST PAGE DESIGN
   =============================================== */

/* Single Post Wrapper */
.single-post-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 0 4rem;
    min-height: 80vh;
}

/* Elegant Breadcrumb */
.elegant-breadcrumb {
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.elegant-breadcrumb .breadcrumb {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 1.5rem;
    box-shadow: none;
    font-size: 0.9rem;
    margin-bottom: 0;
    list-style: none;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 0;
}

.elegant-breadcrumb .breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    position: relative;
    white-space: nowrap;
}

.elegant-breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
    margin-left: 1.2rem;
}

.elegant-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '▶';
    position: absolute;
    left: -0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-weight: bold;
    font-size: 0.8rem;
    opacity: 0.7;
}

.elegant-breadcrumb .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(0, 123, 255, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.elegant-breadcrumb .breadcrumb-item a:hover {
    color: #ffffff;
    background: #007bff;
    border-color: #007bff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.elegant-breadcrumb .breadcrumb-item a i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.elegant-breadcrumb .breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Breadcrumb Logo Styling */
.elegant-breadcrumb .breadcrumb-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
}

.elegant-breadcrumb .breadcrumb-logo-img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    flex-shrink: 0;
}

.elegant-breadcrumb .breadcrumb-logo:hover .breadcrumb-logo-img {
    transform: none !important;
}

/* Responsive breadcrumb handling */
@media (max-width: 768px) {
    .elegant-breadcrumb .breadcrumb {
        flex-wrap: wrap;
        gap: 0.5rem 0;
    }
    
    .elegant-breadcrumb .breadcrumb-item + .breadcrumb-item {
        margin-left: 1rem;
    }
    
    .elegant-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        left: -0.7rem;
    }
    
    .elegant-breadcrumb .breadcrumb-item a,
    .elegant-breadcrumb .breadcrumb-item.active {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* Ensure breadcrumb stays horizontal and doesn't break layout */
.elegant-breadcrumb .breadcrumb-item {
    flex-shrink: 0;
    min-width: 0;
}

.elegant-breadcrumb .breadcrumb-item a span,
.elegant-breadcrumb .breadcrumb-item.active {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Elegant Post Article */
.elegant-post-article {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Post Header */
.elegant-post-header {
    padding: 2.5rem 2.5rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
}

.post-categories-badges {
    margin-bottom: 1.5rem;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0.8rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.elegant-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

.elegant-post-meta {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 0;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.meta-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    background: #ffffff;
    transition: all 0.3s ease;
}

.meta-item:nth-child(1) {
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.meta-item:nth-child(2) {
    border-bottom: 1px solid #e9ecef;
}

.meta-item:nth-child(3) {
    border-right: 1px solid #e9ecef;
}

.meta-item:hover {
    background: #f8f9fa;
    transform: scale(1.02);
}

.meta-item i {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.meta-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.2;
}

/* Featured Image */
.elegant-featured-image {
    margin: 0;
}

.featured-image-container {
    margin: 0;
    position: relative;
    overflow: hidden;
}

.elegant-featured-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.elegant-featured-img:hover {
    transform: scale(1.02);
}

.elegant-image-caption {
    text-align: center !important;
    font-style: italic;
    font-size: 0.9rem;
    color: #6c757d;
    padding: 0.8rem 2rem;
    background: #f8f9fa;
    margin: 0;
    border-top: 1px solid #e9ecef;
    position: relative;
    top: -1px;
}

/* Post Content */
.elegant-post-content {
    padding: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Content Typography */
.elegant-post-content h1,
.elegant-post-content h2,
.elegant-post-content h3,
.elegant-post-content h4,
.elegant-post-content h5,
.elegant-post-content h6 {
    color: #2c3e50;
    font-weight: 600;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.elegant-post-content h1 {
    font-size: 2.25rem;
    border-bottom: 3px solid #007bff;
    padding-bottom: 0.5rem;
}

.elegant-post-content h2 {
    font-size: 2rem;
    position: relative;
    padding-left: 1.5rem;
}

.elegant-post-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 2px;
}

.elegant-post-content h3 {
    font-size: 1.75rem;
    color: #495057;
}

.elegant-post-content h4 {
    font-size: 1.5rem;
    color: #6c757d;
}

.elegant-post-content h5 {
    font-size: 1.25rem;
    color: #6c757d;
}

.elegant-post-content h6 {
    font-size: 1.1rem;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content Images - Full Width Like Featured Image */
.elegant-post-content img {
    width: 100% !important;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 0;
    margin: 2rem 0;
    position: relative;
    object-fit: cover;
}

.elegant-post-content img:hover {
    transform: scale(1.02);
}

/* WordPress Figure and Caption Styling - Full Width */
.elegant-post-content figure,
.elegant-post-content .wp-caption {
    width: 100% !important;
    margin: 2rem 0 !important;
    position: relative;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.elegant-post-content figure img,
.elegant-post-content .wp-caption img {
    width: 100% !important;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 0;
    margin: 0;
    position: relative;
    object-fit: cover;
}

.elegant-post-content figure img:hover,
.elegant-post-content .wp-caption img:hover {
    transform: scale(1.02);
}

/* Content Image Captions - Match Featured Image Caption */
.elegant-post-content figcaption,
.elegant-post-content .wp-caption-text {
    text-align: center !important;
    font-style: italic;
    font-size: 0.9rem;
    color: #6c757d;
    padding: 0.8rem 2rem;
    background: #f8f9fa;
    margin: 0;
    border-top: 1px solid #e9ecef;
    position: relative;
    top: -1px;
    display: block;
}

.elegant-post-content figure {
    margin: 2rem auto !important;
    display: block;
}

.elegant-post-content .wp-caption {
    max-width: 100% !important;
    margin: 2rem auto !important;
    display: block;
}

.elegant-post-content .wp-caption img {
    margin-bottom: 0 !important;
    border-radius: 12px 12px 0 0 !important;
}

/* Content Images in Paragraphs - Full Width */
.elegant-post-content p img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.5s ease !important;
    border-radius: 0 !important;
    margin: 2rem 0 !important;
    position: relative !important;
    object-fit: cover !important;
}

.elegant-post-content p img:hover {
    transform: scale(1.02) !important;
}

/* WordPress Block Editor Images - Full Width */
.elegant-post-content .wp-block-image {
    width: 100% !important;
    margin: 2rem 0 !important;
    position: relative;
    overflow: hidden;
}

.elegant-post-content .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.5s ease !important;
    border-radius: 0 !important;
    object-fit: cover !important;
}

.elegant-post-content .wp-block-image img:hover {
    transform: scale(1.02) !important;
}

.elegant-post-content .wp-block-image figcaption {
    text-align: center !important;
    font-style: italic;
    font-size: 0.9rem;
    color: #6c757d;
    padding: 0.8rem 2rem;
    background: #f8f9fa;
    margin: 0;
    border-top: 1px solid #e9ecef;
    position: relative;
    top: -1px;
}

/* Content Tables */
.elegant-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.elegant-post-content table th,
.elegant-post-content table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.elegant-post-content table th {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-weight: 600;
}

.elegant-post-content table tr:hover {
    background-color: #f8f9fa;
}

/* Content Lists */
.elegant-post-content ul,
.elegant-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.elegant-post-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.elegant-post-content ul li {
    list-style-type: none;
    position: relative;
}

.elegant-post-content ul li::before {
    content: '▶';
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Content Blockquotes */
.elegant-post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 5px solid #007bff;
    border-radius: 8px;
    font-style: italic;
    font-size: 1.1rem;
    color: #495057;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Post Tags */
.elegant-post-tags {
    padding: 1.5rem 2.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.tags-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tags-title i {
    color: #007bff;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-block;
    background: #ffffff;
    color: #495057;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Social Share */
.elegant-social-share {
    padding: 1.5rem 2.5rem;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.share-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-title i {
    color: #007bff;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn.facebook {
    background: #3b5998;
    color: white;
}

.social-btn.twitter {
    background: #1da1f2;
    color: white;
}

.social-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-btn.copy-link {
    background: #6c757d;
    color: white;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Post Navigation */
.elegant-post-navigation {
    padding: 2rem 2.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.nav-links-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-item {
    flex: 1;
}

.nav-link {
    display: block;
    padding: 1.5rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    height: 100%;
}

.nav-link:hover {
    border-color: #007bff;
    background: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
}

.nav-link:hover .nav-direction {
    color: #ffffff;
}

.nav-link:hover .nav-title {
    color: #ffffff;
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.nav-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: #495057;
    transition: color 0.3s ease;
}

.nav-next .nav-direction {
    justify-content: flex-end;
}

.nav-next .nav-title {
    text-align: right;
}

/* ===============================================
   ELEGANT SIDEBAR DESIGN
   =============================================== */

.elegant-sidebar {
    padding-left: 2rem;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.widget-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1.2rem 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.widget-title i {
    font-size: 1.2rem;
}

.widget-content {
    padding: 1.5rem;
}

/* Horizontal Post Cards */
.horizontal-post-card {
    display: flex;
    gap: 0;
    padding: 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 90px;
}

.horizontal-post-card:last-child {
    margin-bottom: 0;
}

.horizontal-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
}

.card-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.horizontal-post-card:hover .card-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    max-height: 90px;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.2rem;
    border: 1px solid #dee2e6;
    box-sizing: border-box;
}

/* Fix broken images in content */
.elegant-post-content img {
    max-height: 600px;
    object-fit: cover;
}

.elegant-post-content img[src=""],
.elegant-post-content img:not([src]),
.elegant-post-content img[src="#"] {
    display: none;
}

/* Sidebar image error handling */
.horizontal-post-card img {
    object-fit: cover;
    object-position: center;
}

.horizontal-post-card img:not([src]),
.horizontal-post-card img[src=""],
.horizontal-post-card img[src="#"] {
    display: none;
}

.horizontal-post-card img + .no-image-placeholder {
    display: flex;
}

.card-content {
    flex: 1;
    min-width: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 90px;
}

.post-category {
    margin-bottom: 0.4rem;
}

.category-tag {
    display: inline-block;
    background: #007bff;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.category-tag:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.horizontal-post-card .post-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 auto 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    flex-grow: 1;
    max-height: 2.6em; /* Fallback for browsers that don't support line-clamp */
}

.horizontal-post-card .post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.horizontal-post-card .post-title a:hover {
    color: #007bff;
}

/* Mobile Responsive Styles for Sidebar Cards */
@media (max-width: 768px) {
    .horizontal-post-card {
        display: flex !important;
        gap: 0;
        height: 90px !important;
        margin-bottom: 1rem;
        overflow: hidden;
    }
    
    .card-image {
        flex-shrink: 0 !important;
        width: 90px !important;
        height: 90px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    .card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .no-image-placeholder {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #e9ecef, #f8f9fa) !important;
        color: #adb5bd !important;
        font-size: 1.2rem !important;
    }
    
    .card-content {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0.6rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 90px !important;
        box-sizing: border-box !important;
    }
    
    .horizontal-post-card .post-title {
        display: block !important;
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        margin: 0 0 0.4rem 0 !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        max-height: 2.4em !important;
        flex-grow: 0 !important;
        flex-shrink: 1 !important;
    }
    
    .horizontal-post-card .post-title a {
        display: -webkit-box !important;
        color: #2c3e50 !important;
        text-decoration: none !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    
    .post-meta {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-top: auto !important;
        width: 100% !important;
    }
    
    .post-date {
        font-size: 0.7rem !important;
        color: #6c757d !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        text-align: left !important;
        flex-shrink: 0 !important;
    }
    
    .post-category {
        margin-bottom: 0 !important;
        text-align: right !important;
        flex-shrink: 0 !important;
    }
    
    .category-tag {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.5rem !important;
        display: inline-block !important;
        text-align: center !important;
    }
}

/* Fallback for browsers that don't support line-clamp */
@supports not (-webkit-line-clamp: 2) {
    .horizontal-post-card .post-title {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-height: 1.3em;
    }
    
    .horizontal-post-card .post-title a {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}

.horizontal-post-card .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    color: #6c757d;
    margin-top: 0.3rem;
}

.horizontal-post-card .post-meta .post-date {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
}

.horizontal-post-card .post-meta .post-category {
    margin-left: auto;
}

.horizontal-post-card .post-meta .category-tag {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
}

.horizontal-post-card .post-meta i {
    width: 12px;
    color: #007bff;
}

.no-posts-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
    margin: 0;
}

.no-posts-message i {
    color: #007bff;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .elegant-sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .elegant-post-title {
        font-size: 2rem;
    }
    
    /* Ensure sidebar is visible on mobile */
    .elegant-sidebar {
        padding: 1rem 0;
        margin-top: 2rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .sidebar-widget {
        margin-bottom: 2rem;
        display: block !important;
    }
    
    .widget-content {
        padding: 1rem;
        display: block !important;
    }

    .elegant-post-header,
    .elegant-post-content,
    .elegant-post-tags,
    .elegant-social-share,
    .elegant-post-navigation {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .meta-group {
        grid-template-columns: 1fr;
    }

    .meta-item:nth-child(1),
    .meta-item:nth-child(2),
    .meta-item:nth-child(3) {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .meta-item:last-child {
        border-bottom: none;
    }

    .nav-links-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .social-buttons {
        justify-content: center;
    }

    .horizontal-post-card {
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .elegant-post-title {
        font-size: 1.5rem;
    }

    .elegant-post-content {
        font-size: 1rem;
    }

    .elegant-breadcrumb {
        margin-bottom: 1.5rem;
        padding: 0.8rem 0;
    }

    .elegant-breadcrumb .breadcrumb {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .elegant-breadcrumb .breadcrumb-item + .breadcrumb-item {
        margin-left: 1rem;
    }

    .elegant-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        left: -0.7rem;
        font-size: 0.6rem;
    }

    .elegant-breadcrumb .breadcrumb-item a,
    .elegant-breadcrumb .breadcrumb-item.active {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
}