@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800&display=swap');

:root {
  --ui-bg: #eaf3ff;
  --ui-bg-soft: #f4f9ff;
  --ui-panel: rgba(246, 251, 255, 0.82);
  --ui-panel-strong: rgba(255, 255, 255, 0.94);
  --ui-line: rgba(255, 255, 255, 0.72);
  --ui-ink: #091a34;
  --ui-muted: #496280;
  --ui-accent: #0f7dff;
  --ui-accent-soft: rgba(15, 125, 255, 0.26);
  --ui-shadow: 0 26px 58px rgba(15, 54, 96, 0.16);
  --ui-radius-lg: 34px;
  --ui-radius-md: 22px;
  --ui-radius-sm: 16px;
}

html,
body {
  font-family: 'Noto Sans Thai', sans-serif;
  color: var(--ui-ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.94), transparent 38%),
    radial-gradient(circle at 80% 24%, rgba(119, 180, 255, 0.26), transparent 32%),
    linear-gradient(160deg, #f7fbff 0%, #e6f0ff 52%, #edf5ff 100%);
  min-height: 100%;
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span,
div {
  font-family: 'Noto Sans Thai', sans-serif;
}

/* Keep icon fonts intact while using global Thai font */
i.fa,
i.fa:before,
[class^='fa ']:before,
[class*=' fa-']:before {
  font-family: FontAwesome !important;
}

[class^='icon-'],
[class*=' icon-'] {
  font-family: 'Simple-Line-Icons' !important;
}

.body {
  position: relative;
  overflow: hidden;
}

.body:before,
.body:after {
  content: '';
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.body:before {
  width: 440px;
  height: 440px;
  top: -110px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.08) 68%, transparent 100%);
}

.body:after {
  width: 350px;
  height: 350px;
  left: -120px;
  bottom: 4%;
  background: radial-gradient(circle, rgba(255, 152, 71, 0.34) 0%, rgba(255, 152, 71, 0.04) 70%, transparent 100%);
}

#header,
.main,
#footer {
  position: relative;
  z-index: 1;
}

/* Keep header above all page layers while scrolling */
#header,
#header .header-body,
.sticky-wrapper {
  z-index: 99999 !important;
}

/* Force header to stay above all elements at all times */
#header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2147483000 !important;
}

#header .header-body {
  position: relative;
  z-index: 2147483001 !important;
}

.sticky-wrapper {
  z-index: 2147483000 !important;
}

body {
  padding-top: 112px;
}

#header .header-body {
  border: 1px solid var(--ui-line);
  border-radius: 0 0 26px 26px;
  background: rgba(239, 248, 255, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 30px rgba(9, 34, 68, 0.1);
}

#header .header-logo img {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

#header .header-nav-main nav > ul > li > a {
  font-family: 'Noto Sans Thai', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 11px 16px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

#header .header-nav-main nav > ul > li.active > a,
#header .header-nav-main nav > ul > li > a:hover {
  background: rgba(17, 18, 24, 0.92);
  color: #fff;
  transform: translateY(-1px);
}

#header .header-social-icons a {
  border: 1px solid rgba(18, 19, 24, 0.2);
  background: rgba(255, 255, 255, 0.55);
  color: #111;
  border-radius: 999px;
}

#header .header-social-icons a:hover {
  background: rgba(18, 19, 24, 0.92);
  color: #fff;
}

.main .section,
.main .custom-box-shadow-1,
.main .featured-box,
.main .sort-destination-item,
.main .thumb-info-wrapper,
.main .custom-timeline-box,
.main .tabs-navigation li a,
.main .card,
.main .owl-item .portfolio-item {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-panel);
  box-shadow: var(--ui-shadow);
  backdrop-filter: blur(10px);
}

.main .section {
  margin-top: 24px;
  margin-bottom: 24px;
  overflow: hidden;
}

.main .section.section-title,
.main .section.section-background {
  border-radius: 0;
  box-shadow: none;
  border: 0;
  background-color: transparent;
}

.main .section-no-border {
  border: 1px solid var(--ui-line) !important;
}

.main h1,
.main h2,
.main h3,
.main h4,
.main h5,
.main .text-uppercase,
.main .thumb-info-title-middle {
  font-family: 'Noto Sans Thai', sans-serif;
  letter-spacing: -0.01em;
  color: var(--ui-ink);
}

.main p,
.main li,
.main span,
.main .text-color-dark,
.main .custom-text-color-1 {
  color: var(--ui-muted) !important;
}

.main .text-color-white,
.main .text-light,
.main .section-text-light,
.main .tp-caption {
  color: #fff !important;
}

.main .btn,
.main button,
.main input[type='submit'],
.main input[type='button'] {
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: 'Noto Sans Thai', sans-serif;
  font-weight: 600;
  padding: 11px 24px;
  transition: all 0.25s ease;
}

.main .btn-primary,
.main .btn-dark,
.main .btn-default,
.main .pagination > li > a,
.main .pagination > li > span {
  background: #121318 !important;
  color: #fff !important;
  border-color: #121318 !important;
  box-shadow: 0 8px 24px rgba(18, 19, 24, 0.25);
}

.main .btn-primary:hover,
.main .btn-dark:hover,
.main .btn-default:hover,
.main .pagination > li > a:hover {
  transform: translateY(-2px);
  background: #000 !important;
  border-color: #000 !important;
}

.main .btn.btn-borders,
.main .btn.btn-outline,
.main .btn-light {
  background: rgba(255, 255, 255, 0.58) !important;
  color: var(--ui-ink) !important;
  border-color: rgba(18, 19, 24, 0.2) !important;
  box-shadow: none;
}

.main input,
.main select,
.main textarea,
.main .form-control,
.main .custom-form-style-1 .form-control {
  height: auto;
  border: 1px solid rgba(18, 19, 24, 0.16);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--ui-panel-strong);
  color: var(--ui-ink);
  box-shadow: none;
}

.main textarea,
.main textarea.form-control {
  border-radius: var(--ui-radius-md);
}

.main input:focus,
.main select:focus,
.main textarea:focus,
.main .form-control:focus {
  border-color: rgba(255, 143, 42, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 143, 42, 0.16);
}

.main .thumb-info .thumb-info-wrapper:after,
.main .thumb-info-wrapper:before {
  border-radius: inherit;
}

.main img,
.main .img-responsive,
.main .thumb-info img,
.main .owl-item img {
  border-radius: var(--ui-radius-md);
}

.main .background-image {
  border-radius: inherit;
  transition: transform 0.7s ease;
}

.main .portfolio-item:hover .background-image {
  transform: scale(1.06);
}

.main .portfolio-stripes {
  padding-top: 18px;
  padding-bottom: 32px;
}

.main .portfolio-stripes .portfolio-item {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  background: rgba(255, 253, 249, 0.8);
  box-shadow: 0 18px 34px rgba(36, 24, 16, 0.15);
}

.main .portfolio-stripes .thumb-info-wrapper {
  min-height: 440px;
}

.main .portfolio-stripes .thumb-info-title-middle {
  max-width: 78%;
  margin: 0 auto;
  line-height: 1.2;
}

.main .portfolio-stripes .owl-nav {
  margin-top: 22px;
}

.main .portfolio-item .thumb-info-title-middle,
.main .thumb-info-title {
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.main .custom-timeline-box {
  background: rgba(255, 253, 250, 0.72);
  padding: 22px;
  margin-bottom: 16px;
}

.main .custom-timeline-box .date {
  color: var(--ui-accent) !important;
}

.main .timeline-bar {
  background: linear-gradient(180deg, rgba(255, 143, 42, 0.85), rgba(255, 143, 42, 0.15));
}

.main .owl-carousel .owl-nav [class*='owl-'] {
  width: 44px;
  height: 44px;
  line-height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(18, 19, 24, 0.2) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  color: var(--ui-ink) !important;
}

.main .owl-carousel .owl-nav [class*='owl-']:hover {
  background: #121318 !important;
  color: #fff !important;
}

.main .progress-bar,
.main .featured-box-primary .box-content {
  background: linear-gradient(120deg, #ffbd7b 0%, #ff8f2a 100%) !important;
}

.main .page-header,
.main .section-parallax {
  border-radius: var(--ui-radius-lg);
  overflow: hidden;
}

#footer {
  margin-top: 34px;
  border: 1px solid var(--ui-line);
  border-radius: 26px 26px 0 0;
  background: rgba(19, 20, 27, 0.95);
  color: rgba(255, 255, 255, 0.84);
}

#footer p,
#footer li,
#footer a,
#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6 {
  color: rgba(255, 255, 255, 0.84) !important;
}

#footer a:hover {
  color: #fff !important;
  text-decoration: none;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main .section .container > .row > [class*='col-'],
.main .portfolio-item,
.main .custom-timeline-box,
.main .feature-box,
.main .thumb-info {
  animation: floatUp 0.55s ease both;
}

.main .section .container > .row > [class*='col-']:nth-child(2),
.main .portfolio-item:nth-child(2),
.main .feature-box:nth-child(2) {
  animation-delay: 0.08s;
}

.main .section .container > .row > [class*='col-']:nth-child(3),
.main .portfolio-item:nth-child(3),
.main .feature-box:nth-child(3) {
  animation-delay: 0.16s;
}

@media (max-width: 991px) {
  #header .header-body {
    border-radius: 0 0 20px 20px;
  }

  .main .section,
  .main .custom-box-shadow-1,
  .main .featured-box,
  .main .sort-destination-item,
  .main .thumb-info-wrapper,
  .main .custom-timeline-box,
  .main .tabs-navigation li a,
  .main .card,
  .main .owl-item .portfolio-item {
    border-radius: 22px;
  }
}

@media (max-width: 767px) {
  .body:before,
  .body:after {
    display: none;
  }

  .main .btn,
  .main button,
  .main input[type='submit'],
  .main input[type='button'] {
    width: 100%;
  }

  .main .owl-carousel .owl-nav [class*='owl-'] {
    width: 40px;
    height: 40px;
    line-height: 34px;
  }
}

/* Phase 2: stronger visual system per page sections */
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu {
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: rgba(251, 246, 240, 0.92);
  box-shadow: 0 20px 35px rgba(24, 19, 14, 0.15);
  backdrop-filter: blur(12px);
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu > li > a {
  border-radius: 12px;
  margin: 4px 8px;
  font-family: 'Noto Sans Thai', sans-serif;
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu > li > a:hover {
  background: rgba(18, 19, 24, 0.92);
  color: #fff;
}

.main .slider-container.rev_slider_wrapper,
.main .section-title {
  border-radius: var(--ui-radius-lg);
  overflow: hidden;
  box-shadow: var(--ui-shadow);
}

.main .section-title:after {
  content: '';
  position: absolute;
  right: 6%;
  bottom: -80px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 156, 69, 0.95) 0%, rgba(255, 156, 69, 0.18) 65%, transparent 100%);
  filter: blur(2px);
  pointer-events: none;
}

.main .feature-box,
.main .thumb-info-caption,
.main .custom-thumb-info-photographers,
.main .testimonial,
.main .contact-details .feature-box {
  border: 1px solid var(--ui-line);
  border-radius: 24px;
  background: rgba(255, 251, 247, 0.8);
  box-shadow: 0 18px 34px rgba(34, 24, 18, 0.14);
}

.main .feature-box {
  padding: 18px;
  min-height: 100%;
}

.main .feature-box .feature-box-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(18, 19, 24, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main .feature-box .feature-box-icon i {
  color: var(--ui-ink);
}

.main .contact-details .feature-box,
.main .section-quaternary.contact-details {
  background: rgba(16, 18, 25, 0.9) !important;
}

.main .section-quaternary.contact-details h4,
.main .section-quaternary.contact-details p,
.main .section-quaternary.contact-details a {
  color: #fff !important;
}

.main .contact-details .feature-box .feature-box-icon {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.main .contact-details .feature-box .feature-box-icon i {
  color: #fff;
}

.main .thumb-info-caption {
  margin-top: -2px;
  padding: 24px;
}

.main .thumb-info-hide-wrapper-bg {
  border-radius: 24px;
  overflow: hidden;
}

.main .thumb-info-hide-wrapper-bg .thumb-info-wrapper {
  border-radius: 24px 24px 0 0;
}

.main .thumb-info-hide-wrapper-bg .thumb-info-caption-text {
  color: var(--ui-muted) !important;
}

.main .section[style*='background: #f4f4f4'],
.main .background-color-quaternary {
  background: transparent !important;
}

.main .contact-details + .section1,
.main .section1 {
  margin: 28px 0;
}

.main .section1 iframe {
  width: 100%;
  border: 0;
  border-radius: 28px;
  box-shadow: var(--ui-shadow);
}

.main .custom-pagination .pagination > li > a,
.main .custom-pagination .pagination > li > span {
  border-radius: 999px !important;
  margin: 0 4px;
}

section.section.section-text-light.section-background.m-none[style*='contact-us-background'] {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ui-radius-lg);
  box-shadow: 0 22px 44px rgba(12, 12, 17, 0.34);
  overflow: hidden;
}

section.section.section-text-light.section-background.m-none[style*='contact-us-background'] h2,
section.section.section-text-light.section-background.m-none[style*='contact-us-background'] h4,
section.section.section-text-light.section-background.m-none[style*='contact-us-background'] h5,
section.section.section-text-light.section-background.m-none[style*='contact-us-background'] p {
  color: #fff !important;
}

.main form#contactForm {
  border: 1px solid var(--ui-line);
  border-radius: 26px;
  background: rgba(255, 251, 247, 0.86);
  padding: 26px 20px 20px;
  box-shadow: var(--ui-shadow);
}

.main form#contactForm .row {
  margin-left: -8px;
  margin-right: -8px;
}

.main form#contactForm [class*='col-'] {
  padding-left: 8px;
  padding-right: 8px;
}

@media (max-width: 767px) {
  .main .section-title:after {
    right: -30px;
    width: 160px;
    height: 160px;
  }

  .main .feature-box,
  .main .thumb-info-caption,
  .main .custom-thumb-info-photographers {
    border-radius: 20px;
  }

  .main form#contactForm {
    padding: 18px 14px;
  }
}

/* Home page specific composition */
body.home-page .main {
  padding-top: 10px;
  padding-bottom: 36px;
}

body.home-page .home-scene {
  position: relative;
  min-height: calc(100vh - 120px);
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  overflow: hidden;
  box-shadow: 0 30px 64px rgba(33, 23, 15, 0.2);
  padding: 52px 0 34px;
}

body.home-page .home-scene-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(26, 18, 13, 0.15), rgba(26, 18, 13, 0.15)),
    url('../img/demos/photography/about/about6dark.jpg') center center / cover no-repeat;
  transform: scale(1.02);
}

body.home-page .home-scene:before,
body.home-page .home-scene:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

body.home-page .home-scene:before {
  width: 460px;
  height: 460px;
  top: -180px;
  left: 20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.06) 62%, transparent 100%);
}

body.home-page .home-scene:after {
  width: 280px;
  height: 280px;
  right: 12%;
  top: 38%;
  background: radial-gradient(circle, rgba(255, 149, 52, 0.92) 0%, rgba(255, 149, 52, 0.18) 64%, transparent 100%);
}

body.home-page .home-scene .container {
  position: relative;
  z-index: 2;
}

body.home-page .home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

body.home-page .home-card {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 32px;
  background: rgba(251, 246, 240, 0.78);
  box-shadow: 0 24px 44px rgba(28, 19, 13, 0.22);
  backdrop-filter: blur(12px);
}

body.home-page .home-card-login {
  padding: 34px 34px 22px;
}

body.home-page .home-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

body.home-page .home-tag {
  margin: 0;
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: rgba(18, 19, 24, 0.72);
}

body.home-page .home-mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(18, 19, 24, 0.22);
  background: rgba(255, 255, 255, 0.55);
  font-family: 'Noto Sans Thai', sans-serif;
  color: #121318;
}

body.home-page .home-card-login h1 {
  font-size: 54px;
  line-height: 0.95;
  margin: 0 0 16px;
}

body.home-page .home-card-login .home-lead {
  color: rgba(18, 19, 24, 0.72) !important;
  max-width: 94%;
  margin-bottom: 22px;
}

body.home-page .home-pill-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 18px;
}

body.home-page .home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(18, 19, 24, 0.14);
  background: rgba(255, 255, 255, 0.68);
  color: #101115;
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

body.home-page .home-pill:hover {
  background: #111218;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(17, 18, 24, 0.3);
}

body.home-page .home-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

body.home-page .home-card-footer p {
  margin: 0;
  max-width: 82%;
  font-size: 14px;
  line-height: 1.4;
}

body.home-page .home-cta-round {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111218;
  color: #fff;
}

body.home-page .home-card-event {
  padding: 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}

body.home-page .home-event-panel {
  border-right: 1px solid rgba(18, 19, 24, 0.12);
  background: rgba(255, 255, 255, 0.42);
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.home-page .home-event-panel h2 {
  font-size: 76px;
  line-height: 0.9;
  margin: 0;
}

body.home-page .home-event-panel p {
  margin: 0;
  font-size: 18px;
}

body.home-page .home-event-content {
  padding: 34px 28px;
  position: relative;
}

body.home-page .home-event-content:after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  right: -20px;
  bottom: -36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 149, 52, 0.95) 0%, rgba(255, 149, 52, 0.22) 68%, transparent 100%);
  pointer-events: none;
}

body.home-page .home-event-content h3 {
  font-size: 38px;
  margin: 12px 0;
  max-width: 85%;
}

body.home-page .home-event-content p {
  position: relative;
  z-index: 1;
  max-width: 86%;
  margin-bottom: 18px;
}

body.home-page .home-pill-dark {
  position: relative;
  z-index: 1;
  width: auto;
  display: inline-flex;
  background: #111218;
  color: #fff;
}

body.home-page .home-bottom-card {
  margin-top: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(16, 17, 22, 0.93);
  padding: 28px 30px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.home-page .home-bottom-card .home-tag,
body.home-page .home-bottom-card h3,
body.home-page .home-bottom-card p {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-top: 0;
  margin-bottom: 8px;
}

body.home-page .home-bottom-card h3 {
  font-size: 42px;
  line-height: 1;
}

body.home-page .home-bottom-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.home-page .home-pill-light {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

body.home-page .home-pill-light:hover {
  background: #fff;
  color: #121318;
}

@media (max-width: 1199px) {
  body.home-page .home-card-event {
    grid-template-columns: 180px 1fr;
  }

  body.home-page .home-card-login h1 {
    font-size: 44px;
  }

  body.home-page .home-event-panel h2 {
    font-size: 62px;
  }

  body.home-page .home-event-content h3 {
    font-size: 32px;
  }
}

@media (max-width: 991px) {
  body.home-page .home-hero-grid {
    grid-template-columns: 1fr;
  }

  body.home-page .home-card-event {
    grid-template-columns: 1fr;
  }

  body.home-page .home-event-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(18, 19, 24, 0.12);
    gap: 8px;
  }

  body.home-page .home-bottom-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  body.home-page .home-scene {
    border-radius: 26px;
    padding: 24px 0 18px;
    min-height: auto;
  }

  body.home-page .home-card {
    border-radius: 22px;
  }

  body.home-page .home-card-login,
  body.home-page .home-event-content,
  body.home-page .home-event-panel {
    padding: 20px 16px;
  }

  body.home-page .home-card-login h1 {
    font-size: 34px;
  }

  body.home-page .home-event-panel h2 {
    font-size: 48px;
  }

  body.home-page .home-event-content h3,
  body.home-page .home-bottom-card h3 {
    font-size: 28px;
    max-width: 100%;
  }

  body.home-page .home-event-content p {
    max-width: 100%;
  }

  body.home-page .home-bottom-card {
    border-radius: 22px;
    padding: 18px 16px;
  }

  body.home-page .home-bottom-actions {
    width: 100%;
    flex-direction: column;
  }
}

/* Home V2 (full redesign) */
body.home-v2 .main {
  padding-top: 12px;
  padding-bottom: 40px;
}

body.home-v2 .homev2-hero .container,
body.home-v2 .homev2-solutions .container,
body.home-v2 .homev2-highlight .container {
  max-width: 1220px;
}

body.home-v2 .homev2-hero-shell {
  position: relative;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(130deg, rgba(3, 38, 77, 0.88), rgba(4, 55, 104, 0.74)),
    url('../img/demos/photography/about/about6dark.jpg') center center/cover no-repeat;
  padding: 26px 28px 120px;
  box-shadow: 0 32px 70px rgba(3, 32, 70, 0.35);
  overflow: hidden;
}

body.home-v2 .homev2-hero-shell:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 18%, rgba(145, 211, 255, 0.4), transparent 35%);
  pointer-events: none;
}

body.home-v2 .homev2-hero-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body.home-v2 .homev2-brand {
  font-family: 'Noto Sans Thai', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.home-v2 .homev2-hero-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

body.home-v2 .homev2-hero-nav ul a {
  color: rgba(255, 255, 255, 0.86);
  font-family: 'Noto Sans Thai', sans-serif;
  font-weight: 500;
}

body.home-v2 .homev2-hero-nav ul a:hover {
  color: #fff;
  text-decoration: none;
}

body.home-v2 .homev2-nav-cta {
  min-width: 130px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: 'Noto Sans Thai', sans-serif;
}

body.home-v2 .homev2-nav-cta:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  text-decoration: none;
}

body.home-v2 .homev2-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 10px;
  margin-top: 28px;
  min-height: 430px;
}

body.home-v2 .homev2-hero-copy {
  padding: 18px 10px 10px 4px;
}

body.home-v2 .homev2-hero-copy h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 70px;
  line-height: 0.92;
}

body.home-v2 .homev2-hero-copy p {
  color: rgba(231, 245, 255, 0.92) !important;
  font-size: 19px;
  max-width: 92%;
  margin-bottom: 24px;
}

body.home-v2 .homev2-search {
  width: 100%;
  max-width: 460px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(214, 236, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 18px;
}

body.home-v2 .homev2-search input {
  border: 0;
  background: transparent !important;
  color: #fff;
  flex: 1;
  padding: 8px 4px !important;
}

body.home-v2 .homev2-search input::placeholder {
  color: rgba(236, 248, 255, 0.82);
}

body.home-v2 .homev2-search a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0a2f5b;
}

body.home-v2 .homev2-hero-image {
  border-radius: 24px;
  background:
    linear-gradient(to top, rgba(0, 24, 49, 0.46), rgba(0, 24, 49, 0.08)),
    url('../img/demos/photography/about/it-slidedark2.jpg') center center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.home-v2 .homev2-filter-bar {
  margin: -46px auto 0;
  position: relative;
  z-index: 5;
  width: calc(100% - 140px);
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(8, 52, 98, 0.1);
  box-shadow: 0 18px 35px rgba(8, 56, 108, 0.15);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 4px;
  align-items: center;
  padding: 10px 12px;
}

body.home-v2 .homev2-filter-bar div {
  padding: 8px 16px;
}

body.home-v2 .homev2-filter-bar span {
  display: block;
  font-size: 12px;
  color: #5b7798;
  margin-bottom: 4px;
}

body.home-v2 .homev2-filter-bar strong {
  color: #0a2c56;
  font-size: 16px;
  font-weight: 700;
}

body.home-v2 .homev2-filter-bar > a {
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #0d5fb8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Noto Sans Thai', sans-serif;
  font-weight: 700;
}

body.home-v2 .homev2-filter-bar > a:hover {
  background: #0a4f9b;
  color: #fff;
  text-decoration: none;
}

body.home-v2 .homev2-solutions,
body.home-v2 .homev2-highlight {
  padding-top: 78px;
}

body.home-v2 .homev2-section-head {
  text-align: center;
  margin-bottom: 26px;
}

body.home-v2 .homev2-section-head h2 {
  font-size: 52px;
  margin: 0 0 8px;
}

body.home-v2 .homev2-section-head p {
  font-size: 18px;
  max-width: 740px;
  margin: 0 auto;
  color: #476280 !important;
}

body.home-v2 .homev2-solution-card {
  display: block;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(13, 76, 143, 0.12);
  box-shadow: 0 18px 32px rgba(8, 62, 119, 0.12);
  margin-bottom: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.home-v2 .homev2-solution-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(8, 62, 119, 0.18);
}

body.home-v2 .homev2-solution-image {
  height: 230px;
  background-size: cover;
  background-position: center;
}

body.home-v2 .homev2-solution-content {
  padding: 18px 20px 20px;
}

body.home-v2 .homev2-solution-content small {
  font-size: 13px;
  font-weight: 700;
  color: #0f6ed8;
}

body.home-v2 .homev2-solution-content h3 {
  margin: 6px 0 8px;
  font-size: 27px;
  color: #0b2a50;
}

body.home-v2 .homev2-solution-content p {
  margin: 0;
  color: #506b88 !important;
}

body.home-v2 .homev2-highlight-grid {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 28px;
  align-items: center;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(13, 76, 143, 0.12);
  box-shadow: 0 24px 40px rgba(8, 62, 119, 0.12);
  padding: 24px;
}

body.home-v2 .homev2-highlight-image {
  min-height: 340px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(9, 59, 116, 0.2), rgba(9, 59, 116, 0.5)),
    url('../img/demos/photography/about/security-dark4.jpg') center center / cover no-repeat;
}

body.home-v2 .homev2-highlight-copy h2 {
  font-size: 56px;
  line-height: 0.98;
  margin: 0 0 14px;
  color: #08264a;
}

body.home-v2 .homev2-highlight-copy p {
  font-size: 18px;
  color: #4a6684 !important;
  margin-bottom: 20px;
}

body.home-v2 .homev2-highlight-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.home-v2 .homev2-btn {
  height: 50px;
  border-radius: 999px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans Thai', sans-serif;
  font-weight: 700;
}

body.home-v2 .homev2-btn-primary {
  background: #0d5fb8;
  color: #fff;
}

body.home-v2 .homev2-btn-primary:hover {
  color: #fff;
  text-decoration: none;
  background: #0a4f9b;
}

body.home-v2 .homev2-btn-ghost {
  background: #eaf4ff;
  border: 1px solid #bad8ff;
  color: #0d4b91;
}

body.home-v2 .homev2-btn-ghost:hover {
  color: #0d4b91;
  text-decoration: none;
  background: #dceeff;
}

@media (max-width: 1199px) {
  body.home-v2 .homev2-hero-copy h1 {
    font-size: 56px;
  }

  body.home-v2 .homev2-filter-bar {
    width: calc(100% - 40px);
  }

  body.home-v2 .homev2-section-head h2,
  body.home-v2 .homev2-highlight-copy h2 {
    font-size: 44px;
  }
}

@media (max-width: 991px) {
  body.home-v2 .homev2-hero-nav ul {
    display: none;
  }

  body.home-v2 .homev2-hero-grid {
    grid-template-columns: 1fr;
  }

  body.home-v2 .homev2-hero-image {
    min-height: 260px;
  }

  body.home-v2 .homev2-filter-bar {
    margin-top: 14px;
    width: 100%;
    border-radius: 24px;
    grid-template-columns: 1fr;
  }

  body.home-v2 .homev2-highlight-grid {
    grid-template-columns: 1fr;
  }

  body.home-v2 .homev2-highlight-image {
    min-height: 260px;
  }
}

@media (max-width: 767px) {
  body.home-v2 .homev2-hero-shell {
    border-radius: 24px;
    padding: 18px 14px 18px;
  }

  body.home-v2 .homev2-brand {
    font-size: 18px;
  }

  body.home-v2 .homev2-nav-cta {
    min-width: 108px;
    height: 40px;
    font-size: 13px;
  }

  body.home-v2 .homev2-hero-copy h1 {
    font-size: 40px;
  }

  body.home-v2 .homev2-hero-copy p {
    font-size: 16px;
  }

  body.home-v2 .homev2-search {
    max-width: 100%;
  }

  body.home-v2 .homev2-solutions,
  body.home-v2 .homev2-highlight {
    padding-top: 36px;
  }

  body.home-v2 .homev2-section-head h2,
  body.home-v2 .homev2-highlight-copy h2 {
    font-size: 32px;
  }

  body.home-v2 .homev2-section-head p,
  body.home-v2 .homev2-highlight-copy p {
    font-size: 15px;
  }

  body.home-v2 .homev2-solution-content h3 {
    font-size: 22px;
  }

  body.home-v2 .homev2-highlight-grid {
    border-radius: 22px;
    padding: 14px;
  }

  body.home-v2 .homev2-btn {
    width: 100%;
  }
}

/* Home V3 (ref-inspired white/blue layout) */
body.home-v3 {
  background:
    radial-gradient(circle at 10% 20%, rgba(186, 220, 255, 0.24), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(194, 226, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #f6fbff 0%, #ecf4ff 100%);
}

body.home-v3 .main {
  padding-top: 14px;
  padding-bottom: 44px;
}

body.home-v3 .homev3-shell .container {
  max-width: 1240px;
}

body.home-v3 .homev3-frame {
  border-radius: 34px;
  border: 1px solid rgba(165, 201, 243, 0.46);
  background: rgba(248, 252, 255, 0.96);
  padding: 14px 14px 26px;
  box-shadow: 0 26px 60px rgba(42, 102, 168, 0.14);
}

body.home-v3 .homev3-hero {
  margin-top: 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  min-height: 430px;
}

body.home-v3 .homev3-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 30, 67, 0.82) 0%, rgba(5, 30, 67, 0.24) 56%, rgba(5, 30, 67, 0.14) 100%),
    url('../img/ProAV-pop-up.jpg') center center / cover no-repeat;
}

body.home-v3 .homev3-hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 54px 44px;
}

body.home-v3 .homev3-kicker {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(171, 212, 255, 0.45);
  background: rgba(28, 97, 171, 0.28);
  color: #d7ecff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

body.home-v3 .homev3-hero-overlay h1 {
  color: #fff;
  font-size: 64px;
  line-height: 0.98;
  margin: 0 0 14px;
  text-shadow: 0 10px 22px rgba(7, 25, 51, 0.35);
}

body.home-v3 .homev3-hero-overlay p {
  color: rgba(232, 243, 255, 0.94) !important;
  font-size: 20px;
  margin-bottom: 22px;
  max-width: 94%;
}

body.home-v3 .homev3-hero-overlay a {
  min-width: 240px;
  height: 52px;
  border-radius: 999px;
  background: #0e66c5;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

body.home-v3 .homev3-hero-overlay a:hover {
  background: #0b559f;
  color: #fff;
  text-decoration: none;
}

body.home-v3 .homev3-section-head {
  margin-top: 28px;
}

body.home-v3 .homev3-section-head h2 {
  margin: 0 0 14px;
  font-size: 48px;
  color: #0f2f56;
}

body.home-v3 .homev3-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.home-v3 .homev3-filters span,
body.home-v3 .homev3-filters a {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

body.home-v3 .homev3-filters span {
  background: #fff;
  border: 1px solid #d6e6f8;
  color: #476582;
}

body.home-v3 .homev3-filters a {
  background: #e8f3ff;
  border: 1px solid #bedaf7;
  color: #0f4d94;
  font-weight: 700;
}

body.home-v3 .homev3-filters a:hover {
  text-decoration: none;
  background: #dbeeff;
}

body.home-v3 .homev3-project-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

body.home-v3 .homev3-project-row {
  border-radius: 18px;
  border: 1px solid #d8e8fa;
  background: #fff;
  padding: 16px;
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 14px;
  align-items: stretch;
  box-shadow: 0 12px 24px rgba(36, 98, 165, 0.08);
}

body.home-v3 .homev3-project-info h3 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
  color: #10345d;
  word-break: break-word;
}

body.home-v3 .homev3-project-info p {
  margin-bottom: 10px;
}

body.home-v3 .homev3-project-info ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

body.home-v3 .homev3-project-info ul li {
  margin-bottom: 6px;
  color: #4c6887 !important;
}

body.home-v3 .homev3-project-info ul li:before {
  content: '•';
  color: #0f67c7;
  margin-right: 8px;
}

body.home-v3 .homev3-project-info a {
  min-width: 220px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(120deg, #0f67c7, #0a4f9b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

body.home-v3 .homev3-project-info a:hover {
  text-decoration: none;
  color: #fff;
  background: #0b559f;
}

body.home-v3 .homev3-project-image {
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  min-height: 230px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body.home-v3 .homev3-mini-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

body.home-v3 .homev3-mini-card {
  border-radius: 16px;
  border: 1px solid #d8e8fa;
  background: #fff;
  padding: 10px;
  display: block;
  box-shadow: 0 10px 20px rgba(35, 96, 162, 0.08);
}

body.home-v3 .homev3-mini-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

body.home-v3 .homev3-mini-image {
  border-radius: 12px;
  min-height: 146px;
  background-size: cover;
  background-position: center;
  margin-bottom: 10px;
}

body.home-v3 .homev3-mini-card h4 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
  color: #113860;
  word-break: break-word;
}

body.home-v3 .homev3-mini-card p {
  margin: 0;
  color: #4c6887 !important;
}

body.home-v3 .homev3-banner {
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

body.home-v3 .homev3-banner-media {
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(6, 34, 70, 0.62) 0%, rgba(6, 34, 70, 0.24) 100%),
    url('../img/slides/krystal-5.jpg') center center / cover no-repeat;
}

body.home-v3 .homev3-banner-content {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 540px;
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: rgba(5, 38, 79, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

body.home-v3 .homev3-banner-content h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 44px;
}

body.home-v3 .homev3-banner-content p {
  color: rgba(228, 241, 255, 0.96) !important;
  margin-bottom: 12px;
}

body.home-v3 .homev3-banner-content a {
  min-width: 200px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  color: #0d4f97;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

body.home-v3 .homev3-banner-content a:hover {
  text-decoration: none;
  background: #e7f2ff;
}

@media (max-width: 1199px) {
  body.home-v3 .homev3-hero-overlay h1 {
    font-size: 54px;
  }

  body.home-v3 .homev3-section-head h2 {
    font-size: 40px;
  }

  body.home-v3 .homev3-project-info h3 {
    font-size: 34px;
    line-height: 1.12;
  }
}

@media (max-width: 991px) {
  body.home-v3 .homev3-hero {
    min-height: 340px;
  }

  body.home-v3 .homev3-hero-overlay {
    padding: 30px 20px;
  }

  body.home-v3 .homev3-project-row {
    grid-template-columns: 1fr;
  }

  body.home-v3 .homev3-mini-grid {
    grid-template-columns: 1fr;
  }

  body.home-v3 .homev3-banner-content {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -140px 14px 14px;
  }
}

@media (max-width: 767px) {
  body.home-v3 .homev3-frame {
    border-radius: 20px;
    padding: 12px;
  }

  body.home-v3 .homev3-hero-overlay h1 {
    font-size: 38px;
  }

  body.home-v3 .homev3-hero-overlay p {
    font-size: 15px;
  }

  body.home-v3 .homev3-hero-overlay a {
    min-width: 100%;
  }

  body.home-v3 .homev3-section-head h2 {
    font-size: 32px;
  }

  body.home-v3 .homev3-project-info h3 {
    font-size: 28px;
    line-height: 1.14;
  }

  body.home-v3 .homev3-project-info a {
    min-width: 100%;
  }

  body.home-v3 .homev3-mini-card h4 {
    font-size: 24px;
  }

  body.home-v3 .homev3-banner-content h3 {
    font-size: 30px;
  }

  body.home-v3 .homev3-banner-content a {
    min-width: 100%;
  }
}

/* Home V4: rebuilt for stable typography and clean layout */
body.home-v4 {
  background:
    radial-gradient(circle at 12% 18%, rgba(181, 218, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #f6fbff 0%, #edf5ff 100%);
}

body.home-v4 .main {
  padding-top: 22px;
  padding-bottom: 44px;
}

body.home-v4 .homev4-shell .container {
  max-width: 1240px;
}

body.home-v4 .homev4-frame {
  border-radius: 30px;
  border: 1px solid rgba(165, 201, 243, 0.4);
  background: rgba(250, 253, 255, 0.97);
  padding: 18px;
  box-shadow: 0 22px 50px rgba(32, 95, 163, 0.14);
}

body.home-v4 .homev4-hero {
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 52% 48%;
  min-height: 430px;
  background: #0a2e5a;
}

body.home-v4 .homev4-hero-copy {
  padding: 42px 36px;
  background: linear-gradient(140deg, #072c55 0%, #0d427f 100%);
}

body.home-v4 .homev4-badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #d8ebff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  margin: 0 0 14px;
}

body.home-v4 .homev4-hero-copy h1 {
  font-size: 40px;
  line-height: 1.22;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: 0;
}

body.home-v4 .homev4-lead {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(228, 242, 255, 0.96) !important;
  margin-bottom: 22px;
}

body.home-v4 .homev4-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.home-v4 .homev4-btn {
  min-width: 210px;
  height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

body.home-v4 .homev4-btn-primary {
  background: #fff;
  color: #0f4d94;
}

body.home-v4 .homev4-btn-primary:hover {
  background: #e9f3ff;
  color: #0f4d94;
  text-decoration: none;
}

body.home-v4 .homev4-btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body.home-v4 .homev4-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
  text-decoration: none;
}

body.home-v4 .homev4-hero-media {
  background:
    linear-gradient(90deg, rgba(6, 37, 76, 0.2), rgba(6, 37, 76, 0.4)),
    url('../img/ProAV-pop-up.jpg') center center / cover no-repeat;
}

body.home-v4 .homev4-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}

body.home-v4 .homev4-pills span,
body.home-v4 .homev4-pills a {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

body.home-v4 .homev4-pills span {
  background: #fff;
  border: 1px solid #d2e4f7;
  color: #3f5c7b;
}

body.home-v4 .homev4-pills a {
  background: #e8f3ff;
  border: 1px solid #bfdbf8;
  color: #0d4f97;
}

body.home-v4 .homev4-pills a:hover {
  text-decoration: none;
  background: #dbeeff;
}

body.home-v4 .homev4-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

body.home-v4 .homev4-card {
  background: #fff;
  border: 1px solid #d7e8fa;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(33, 98, 165, 0.08);
}

body.home-v4 .homev4-card-media {
  min-height: 170px;
  background-size: cover;
  background-position: center;
}

body.home-v4 .homev4-card-body {
  padding: 14px;
}

body.home-v4 .homev4-card-body h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
  color: #10365f;
}

body.home-v4 .homev4-card-body p {
  margin: 0 0 10px;
  line-height: 1.65;
  font-size: 14px;
}

body.home-v4 .homev4-card-body a {
  color: #0d5fb8;
  font-weight: 700;
  font-size: 13px;
}

body.home-v4 .homev4-card-body a:hover {
  text-decoration: none;
  color: #0b4f98;
}

body.home-v4 .homev4-showcase {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #d7e8fa;
  border-radius: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 14px;
}

body.home-v4 .homev4-showcase-copy h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.25;
  color: #10365f;
}

body.home-v4 .homev4-showcase-copy ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

body.home-v4 .homev4-showcase-copy li {
  margin-bottom: 7px;
  line-height: 1.62;
  font-size: 14px;
}

body.home-v4 .homev4-showcase-copy li:before {
  content: '•';
  color: #0f67c7;
  margin-right: 8px;
}

body.home-v4 .homev4-showcase-media {
  border-radius: 12px;
  min-height: 260px;
  background:
    linear-gradient(120deg, rgba(6, 37, 76, 0.2), rgba(6, 37, 76, 0.35)),
    url('../img/slides/krystal-5.jpg') center center / cover no-repeat;
}

body.home-v4 .homev4-bottom-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

body.home-v4 .homev4-mini {
  background: #fff;
  border: 1px solid #d7e8fa;
  border-radius: 14px;
  padding: 14px;
  display: block;
}

body.home-v4 .homev4-mini:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

body.home-v4 .homev4-mini h4 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.34;
  color: #10365f;
}

body.home-v4 .homev4-mini p {
  margin: 0;
  line-height: 1.6;
  font-size: 13px;
}

@media (max-width: 1199px) {
  body.home-v4 .homev4-hero-copy h1 {
    font-size: 34px;
  }

  body.home-v4 .homev4-card-body h3 {
    font-size: 19px;
  }

  body.home-v4 .homev4-showcase-copy h2 {
    font-size: 25px;
  }
}

@media (max-width: 991px) {
  body.home-v4 .homev4-hero,
  body.home-v4 .homev4-showcase {
    grid-template-columns: 1fr;
  }

  body.home-v4 .homev4-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.home-v4 .homev4-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 96px;
  }

  body.home-v4 .main {
    padding-top: 16px;
  }

  body.home-v4 .homev4-frame {
    padding: 12px;
    border-radius: 20px;
  }

  body.home-v4 .homev4-hero-copy {
    padding: 20px 16px;
  }

  body.home-v4 .homev4-hero-copy h1 {
    font-size: 28px;
    line-height: 1.24;
  }

  body.home-v4 .homev4-lead {
    font-size: 14px;
  }

  body.home-v4 .homev4-btn {
    width: 100%;
    min-width: 100%;
  }

  body.home-v4 .homev4-grid,
  body.home-v4 .homev4-bottom-grid {
    grid-template-columns: 1fr;
  }

  body.home-v4 .homev4-card-body h3 {
    font-size: 18px;
    line-height: 1.34;
  }

  body.home-v4 .homev4-showcase-copy h2 {
    font-size: 22px;
  }

  body.home-v4 .homev4-mini h4 {
    font-size: 17px;
  }
}
