/* ==========================================================================
   Elets Resources – UI refresh (loaded last on every page)
   ========================================================================== */
:root {
  --brand: #E41D37;
  --brand-dark: #b8142a;
  --ink: #14142b;
  --body: #4a4a5e;
  --muted: #7a7a8c;
  --line: #e7e7ef;
  --bg-soft: #f6f6fa;
  --navy: #1b1a33;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(20, 20, 43, .06);
  --shadow-md: 0 14px 36px rgba(20, 20, 43, .12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: 'Inter', 'Roboto', sans-serif; color: var(--ink); letter-spacing: -.01em; }
a { transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
:focus-visible { outline: 3px solid rgba(228, 29, 55, .45); outline-offset: 2px; }

/* ---------- Header ---------- */
.body-inner .header-classic { background: #fff; padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; }
.body-inner .header-classic .navbar-brand img { max-height: 54px; width: auto; }
.body-inner .header-classic #navbarTop > a {
  background: var(--brand) !important; border-radius: 999px !important; padding: 10px 26px !important;
  font-weight: 600; font-size: 14px; letter-spacing: .02em; box-shadow: 0 6px 16px rgba(228, 29, 55, .28) !important;
}
.body-inner .header-classic #navbarTop > a:hover { background: var(--brand-dark) !important; transform: translateY(-1px); }

.body-inner .header-dark {
  background: rgba(17, 17, 32, .97); position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18); backdrop-filter: saturate(140%) blur(6px);
}
.body-inner .header-dark .navbar-nav > li > a {
  color: #e9e9f2 !important; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  padding: 20px 16px !important; position: relative;
}
.body-inner .header-dark .navbar-nav > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 12px; height: 2px;
  background: var(--brand); transform: scaleX(0); transition: transform .25s ease;
}
.body-inner .header-dark .navbar-nav > li:hover > a::after { transform: scaleX(1); }
.body-inner .header-dark .dropdown-menu {
  border: 0; border-radius: 12px; padding: 8px; min-width: 210px;
  box-shadow: var(--shadow-md); border-top: 3px solid var(--brand);
}
.body-inner .header-dark .dropdown-menu li a {
  color: var(--ink) !important; border-radius: 8px; padding: 9px 14px !important; font-size: 14px; display: block;
}
.body-inner .header-dark .dropdown-menu li a:hover { background: #fdecef; color: var(--brand) !important; }
.body-inner .navbar-toggler {
  background: var(--brand); border: 0; border-radius: 10px; padding: 8px 12px; margin: 10px 0;
}
.body-inner .navbar-toggler .icon { color: #fff; font-size: 20px; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: 92px 0 84px;
  background:
    linear-gradient(120deg, rgba(20, 14, 40, .92) 0%, rgba(20, 14, 40, .72) 45%, rgba(228, 29, 55, .78) 100%),
    url('../images/cfback.jpg') center / cover no-repeat;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); pointer-events: none;
}
.page-hero .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.page-hero h1 { color: #fff; font-size: 52px; font-weight: 800; line-height: 1.12; margin: 0 auto 14px; max-width: 900px; }
.page-hero p.lead { color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 680px; margin: 0 auto; line-height: 1.6; }
.page-hero .crumbs { font-size: 13px; color: rgba(255, 255, 255, .75); margin-bottom: 16px; }
.page-hero .crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.page-hero .crumbs span[aria-hidden] { margin: 0 8px; opacity: .6; }
.page-hero .hero-meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.page-hero .hero-meta span {
  font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 7px 14px;
}
.page-hero .hero-meta .fa { margin-right: 6px; color: #ffb3bd; }
.page-hero--sm { padding: 64px 0 60px; }
.page-hero--sm h1 { font-size: 38px; }

/* ---------- Category filter ---------- */
.case-filter-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; position: relative; z-index: 2; }
.case-filter-bar .collapse1 { display: flex !important; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.case-filter-bar .collapse1 ul { display: flex !important; flex-direction: row; gap: 10px; margin: 0 auto; padding: 0; }
.case-filter-bar .collapse1 li { border: 0 !important; padding: 0 !important; list-style: none; }
.case-filter-bar .collapse1 li a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  color: var(--ink) !important; font-size: 15px !important; font-weight: 600;
  padding: 10px 22px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
}
.case-filter-bar .collapse1 li a:hover { border-color: var(--brand); color: var(--brand) !important; }
.case-filter-bar .collapse1 li.activecase a { background: var(--brand); border-color: var(--brand); color: #fff !important; box-shadow: 0 6px 16px rgba(228, 29, 55, .25); }
.case-filter-bar .count {
  font-size: 12px; font-weight: 700; background: rgba(20, 20, 43, .08); border-radius: 999px; padding: 2px 8px;
}
.case-filter-bar li.activecase .count { background: rgba(255, 255, 255, .25); }

/* ---------- Card grid ---------- */
.case-grid { background: var(--bg-soft); padding: 64px 0 80px; position: relative; }
.case-grid .row > [class*="col-"] { display: flex; margin-bottom: 30px; }
.case-grid .post {
  display: flex; flex-direction: column; width: 100%; margin: 0 !important;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.case-grid .post:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-grid .post .post-media { margin: 0 !important; overflow: hidden; aspect-ratio: 16 / 9; background: #eee; }
.case-grid .post .post-media img {
  width: 100%; height: 100% !important; object-fit: cover; display: block;
  transition: transform .5s ease; box-shadow: none !important; border-radius: 0 !important;
}
.case-grid .post:hover .post-media img { transform: scale(1.05) !important; }
.case-grid .post .post-body {
  display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px !important; margin: 0 !important;
  background: transparent !important; box-shadow: none !important;
}
.case-grid .post-meta { margin-bottom: 10px; }
.case-grid .post-meta-date {
  display: inline-block; font-size: 11px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand) !important; background: #fdecef; padding: 4px 10px; border-radius: 999px;
}
.case-grid h2.entry-title { font-size: 19px !important; line-height: 1.35 !important; margin-bottom: 10px !important; }
.case-grid h2.entry-title a { color: var(--ink); }
.case-grid h2.entry-title a:hover { color: var(--brand); }
.case-grid .entry-content p { color: var(--body); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.case-grid .post-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.case-grid .btn-link {
  color: var(--brand) !important; font-weight: 700; font-size: 14px; text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 8px; padding: 0 !important; border: 0 !important;
}
.case-grid .btn-link .icon { transition: transform .2s ease; font-size: 13px; }
.case-grid .btn-link:hover .icon { transform: translateX(4px); }
.case-grid .speaker-shap { display: none; }
.section-heading { text-align: center; margin-bottom: 36px; }
.section-heading .eyebrow { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.section-heading h2 { font-size: 32px; font-weight: 800; margin: 8px 0 0; }

/* ---------- Case study detail ---------- */
.body-inner #main-container { padding: 56px 0 24px !important; }
.blog-details .post-media { margin-bottom: 36px; }
.blog-details .post-media img {
  border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: auto;
}
.blog-details .entry-content { margin-bottom: 40px !important; }
.blog-details .entry-content p { color: #3d3d52; font-size: 18px; line-height: 1.8; margin-bottom: 22px; }
.blog-details blockquote {
  position: relative; margin: 40px 0; padding: 34px 36px 30px 92px; text-align: left;
  background: linear-gradient(135deg, #fff5f6 0%, #fff 100%); border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm);
}
.blog-details blockquote:before {
  left: 28px !important; top: 26px !important; padding: 0 !important; transform: none !important;
  color: var(--brand) !important; opacity: .25; font-size: 44px !important;
}
.blog-details blockquote p { font-size: 20px !important; font-style: italic; color: var(--ink) !important; line-height: 1.6; font-weight: 500; margin: 0; }
.blog-details blockquote cite { display: block; margin-top: 14px; font-size: 14px; font-style: normal; color: var(--muted); font-weight: 600; }
.case-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 10px; }
.body-inner .casestudybtn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand) !important; color: #fff !important; font-size: 16px !important; font-weight: 700 !important;
  padding: 15px 34px !important; margin: 0 !important; border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(228, 29, 55, .3);
}
.body-inner .casestudybtn:hover { background: var(--brand-dark) !important; transform: translateY(-2px); color: #fff !important; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Contact ---------- */
.body-inner #section-about { background: var(--bg-soft); padding: 64px 0 80px; }
.body-inner #section-about .row { align-items: stretch !important; }
.contact-card {
  background: #fff; border-radius: 18px; padding: 36px 36px 30px; box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.contact-card h2 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.contact-card .sub { color: var(--muted); margin-bottom: 24px; }
.contact-card .formdiv { flex: 0 0 100%; max-width: 100%; }
.contact-card .formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.contact-card .formgrid > div.full { grid-column: 1 / -1; }
.contact-card .formdiv div { margin-bottom: 16px; }
.contact-card .formdiv div p { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px !important; }
.contact-card .form-control {
  height: auto; padding: 12px 14px; border-radius: 10px; border: 1px solid #dcdce6; font-size: 15px; background: #fbfbfd;
}
.contact-card textarea.form-control { min-height: 120px; }
.contact-card .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(228, 29, 55, .12); background: #fff; }
.contact-card #send_message {
  background: var(--brand) !important; border: 0 !important; color: #fff !important; border-radius: 999px !important;
  padding: 14px 40px !important; font-weight: 700; letter-spacing: .04em; box-shadow: 0 10px 24px rgba(228, 29, 55, .3); cursor: pointer;
}
.contact-card #send_message:hover { background: var(--brand-dark) !important; }
.contact-card #send_message:disabled { opacity: .7; cursor: wait; }
.contact-card #form_msg { font-weight: 600; }
.contact-aside { height: 100%; display: flex; flex-direction: column; gap: 18px; }
.contact-aside .de-images img { border-radius: 18px !important; box-shadow: var(--shadow-md); width: 100%; }
.contact-points { background: #fff; border-radius: 18px; padding: 24px 26px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-points li { list-style: none; display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; color: var(--body); }
.contact-points li + li { border-top: 1px solid var(--line); }
.contact-points .fa {
  flex: 0 0 38px; height: 38px; border-radius: 10px; background: #fdecef; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.contact-points strong { display: block; color: var(--ink); }
.contact-points ul { margin: 0; padding: 0; }

/* ---------- Footer ---------- */
.body-inner .ts-footer { background: var(--navy) !important; padding: 72px 0 34px !important; }
.body-inner .ts-footer .colorwhite h3 { font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #fff; margin-bottom: 16px; }
.body-inner .ts-footer .colorwhite ul { padding: 0; }
.body-inner .ts-footer .colorwhite li { margin-bottom: 9px; }
.body-inner .ts-footer .colorwhite a { color: #a9a9c2 !important; font-size: 14px !important; }
.body-inner .ts-footer .colorwhite a:hover { color: #fff !important; }
.body-inner .ts-footer img { max-width: 170px; height: auto; }
.body-inner .ts-footer-social ul li a {
  width: 42px !important; height: 42px !important; line-height: 42px !important; border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, .2) !important; color: #fff !important; background: transparent !important;
  display: inline-block; text-align: center;
}
.body-inner .ts-footer-social ul li a:hover { background: var(--brand) !important; border-color: var(--brand) !important; transform: translateY(-3px); }
.body-inner .copyright-text { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 26px; margin-top: 10px; }
.body-inner .copyright-text p { color: #8e8ea8; font-size: 13px; margin: 0; }
.body-inner .BackTo a { background: var(--brand) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(228, 29, 55, .35); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .body-inner .header-dark .navbar-nav > li > a { padding: 12px 10px !important; }
  .body-inner .header-dark .navbar-nav > li > a::after { display: none; }
  .body-inner .header-dark .dropdown-menu { box-shadow: none; background: rgba(255, 255, 255, .06); border-top: 0; }
  .body-inner .header-dark .dropdown-menu li a { color: #e9e9f2 !important; }
  .page-hero h1 { font-size: 40px; }
  .page-hero--sm h1 { font-size: 30px; }
}
@media (max-width: 767px) {
  .page-hero { padding: 60px 0 56px; }
  .page-hero h1 { font-size: 32px; }
  .page-hero--sm h1 { font-size: 25px; }
  .page-hero p.lead { font-size: 16px; }
  .case-filter-bar .collapse1 { justify-content: flex-start; padding: 0 4px; }
  .case-grid { padding: 40px 0 56px; }
  .blog-details .entry-content p { font-size: 16px; }
  .blog-details blockquote { padding: 28px 22px 24px 22px; }
  .blog-details blockquote:before { display: none; }
  .blog-details blockquote p { font-size: 17px !important; }
  .contact-card { padding: 26px 20px; }
  .contact-card .formgrid { grid-template-columns: 1fr; }
  .body-inner .header-classic .navbar-brand img { max-height: 42px; }
  .body-inner .header-classic #navbarTop > a { padding: 8px 16px !important; font-size: 13px; }
  .body-inner .ts-footer .colorwhite { text-align: center !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Polish ---------- */
.body-inner .header-dark { padding: 0 !important; }
.body-inner .header-dark .navbar { min-height: 0; padding: 0 !important; }
.body-inner .header-classic .navbar { flex-wrap: nowrap; align-items: center; justify-content: space-between; }
.body-inner .header-classic #navbarTop { flex-basis: auto; flex-grow: 0; }
.body-inner .BackTo { background: var(--brand) !important; box-shadow: 0 8px 20px rgba(228, 29, 55, .35); width: 46px; height: 46px; }
.body-inner .BackTo a { background: transparent !important; box-shadow: none !important; color: #fff !important;
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0 !important; font-size: 22px; }
.contact-card #send_message { line-height: 1.2 !important; height: auto !important; display: inline-block; }
@media (max-width: 767px) {
  .case-filter-bar .collapse1 { justify-content: flex-start !important; }
  .case-filter-bar .collapse1 ul { margin: 0 !important; width: max-content; padding: 0 12px; }
  .case-filter-bar .collapse1 li a { padding: 9px 16px; font-size: 14px !important; }
  .body-inner .header-classic { padding: 8px 0; }
}
