/* =====================================================================
   home.css – Home page specific styles
   Depends on: header.css (for CSS variables)
   ===================================================================== */

@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardSheen {
  0%   { transform: translateX(-150%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

.home-intro {
  padding: clamp(40px, 6vw, 72px) clamp(16px, 5vw, 40px) clamp(24px, 3vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
}

.hi-header {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
  animation: fadeUpIn 0.8s var(--ease) backwards;
}

.hi-header::before,
.hi-header::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #d0dbe6;
  opacity: 0.7;
}

.hi-header h2 {
  margin: 0 clamp(16px, 3vw, 32px);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 300; /* Sleek, elegant weight */
  color: var(--hdr-end);
  letter-spacing: -0.02em;
}

.hi-grid-media {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(32px, 5vw, 48px);
}

.hi-media-card {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background-color: #e4ebf1;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 29, 59, 0.1);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s var(--ease);
  animation: fadeUpIn 0.8s var(--ease) backwards;
}

/* Staggered entrance animations */
.hi-media-card:nth-child(1) { animation-delay: 0.1s; }
.hi-media-card:nth-child(2) { animation-delay: 0.2s; }
.hi-media-card:nth-child(3) { animation-delay: 0.3s; }
.hi-media-card:nth-child(4) { animation-delay: 0.4s; }

.hi-media-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0, 29, 59, 0.22);
}

.hi-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Creative hover: slight rotation and scale */
.hi-media-card:hover img {
  transform: scale(1.1) rotate(-1.5deg);
}

/* Fallback for missing images */
.hi-media-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8eef4 0%, #ccd8e2 100%);
  z-index: -1;
}

.hi-media-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: rgba(0, 14, 30, 0.35); /* Dark overlay */
  color: #ffffff;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: background 0.4s var(--ease), letter-spacing 0.4s var(--ease);
}

.hi-media-card:hover .hi-media-title {
  background: rgba(0, 14, 30, 0.15);
  letter-spacing: 3px;
}

.hi-grid-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}

.hi-info-card {
  position: relative;
  padding: 36px 28px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  color: #334155;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s var(--ease);
  overflow: hidden;
  opacity: 0; /* Handled by JS IntersectionObserver */
  transform: translateY(30px);
}

.hi-info-card.is-visible {
  animation: fadeUpIn 0.8s var(--ease) forwards;
}

.hi-info-card:hover {
  transform: translateY(-8px);
}

/* Gradients */
.hi-info-card.grad-sky {
  background: linear-gradient(135deg, #e0f2fe 0%, #ede9fe 100%);
}
.hi-info-card.grad-sky:hover { box-shadow: 0 16px 36px rgba(224, 242, 254, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.8); }

.hi-info-card.grad-cream {
  background: linear-gradient(135deg, #fef3c7 0%, #fde2e4 100%);
}
.hi-info-card.grad-cream:hover { box-shadow: 0 16px 36px rgba(254, 243, 199, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.8); }

.hi-info-card.grad-mint {
  background: linear-gradient(135deg, #dcfce7 0%, #cffafe 100%);
}
.hi-info-card.grad-mint:hover { box-shadow: 0 16px 36px rgba(220, 252, 231, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.8); }

.hi-info-card.grad-rose {
  background: linear-gradient(135deg, #ffe4e6 0%, #ffedd5 100%);
}
.hi-info-card.grad-rose:hover { box-shadow: 0 16px 36px rgba(255, 228, 230, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.8); }

/* Sheen Overlay */
.hi-info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-150%) skewX(-15deg);
  pointer-events: none;
  z-index: 1;
}

.hi-info-card:hover::before {
  animation: cardSheen 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Number */
.hi-card-num {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  transition: -webkit-text-stroke-color 0.4s;
}
.hi-info-card:hover .hi-card-num {
  -webkit-text-stroke-color: rgba(0, 0, 0, 0.25);
}

/* Typography */
.hi-info-card h3 {
  margin: 0 0 14px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy-900);
  position: relative;
  z-index: 2;
}

/* Accent Underline */
.hi-info-card h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--hdr-start), var(--hdr-end));
  margin-top: 10px;
  transition: width 0.4s var(--ease);
}
.hi-info-card:hover h3::after {
  width: 80px;
}

.hi-info-card p {
  margin: 0 0 24px; 
  font-size: clamp(14px, 1.1vw, 15px);
  line-height: 1.65;
  color: #475569;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.hi-card-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--hdr-start);
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: color 0.3s;
}
.hi-card-link span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s var(--ease);
}
.hi-card-link:hover {
  color: var(--navy-900);
}
.hi-info-card:hover .hi-card-link span {
  transform: translateX(6px);
}

/* Responsive Breakpoints */
@media (min-width: 1025px) and (max-width: 1210px) {
  .hi-grid-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hi-grid-media, .hi-grid-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .hi-grid-media, .hi-grid-info {
    grid-template-columns: 1fr;
  }
}

/* ===================== HOME ACCORDION + NEWS ===================== */
.dks-intro-news {
  padding: 0 clamp(16px, 5vw, 40px) clamp(56px, 7vw, 88px);
}

.dks-home-content {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.hi-grid-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.hi-info-card {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(10, 42, 79, .07);
  backdrop-filter: none;
  opacity: 1;
  transform: none;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}

.hi-info-card:hover { transform: none; }
.hi-info-card.open { box-shadow: 0 18px 36px rgba(10, 42, 79, .13); transform: translateY(-2px); }
.hi-info-card::before { display: none; }

.hi-info-card.grad-sky { background: linear-gradient(135deg, #dff0ff, #ece8ff); }
.hi-info-card.grad-cream { background: linear-gradient(135deg, #fff2c8, #ffe4e4); }
.hi-info-card.grad-mint { background: linear-gradient(135deg, #dcfbe9, #cffaf6); }
.hi-info-card.grad-rose { background: linear-gradient(135deg, #ffe2e4, #ffedd2); }

.dks-acc-heading { margin: 0; }
.hi-info-card .dks-acc-heading::after { display: none; }
.dks-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 22px;
  border: 0;
  border-radius: 18px;
  background: none;
  color: #0a2a4f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dks-acc-btn:focus-visible { outline: 3px solid #12397a; outline-offset: 2px; }
.dks-acc-btn .hi-card-num {
  flex: none;
  min-width: 52px;
  margin: 0;
  color: transparent;
  font-size: 36px;
  -webkit-text-stroke: 1.5px rgba(10, 42, 79, .22);
  transition: -webkit-text-stroke-color .4s var(--ease), transform .45s var(--ease);
}

.hi-info-card.open .hi-card-num { -webkit-text-stroke-color: #0a2a4f; transform: scale(1.04); }
.dks-acc-title { flex: 1; font-size: 18px; font-weight: 800; line-height: 1.3; text-align: left; }
.dks-acc-icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(10, 42, 79, .12);
  transition: background .3s, transform .4s var(--ease);
}

.dks-acc-icon::before,
.dks-acc-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: #0a2a4f;
  content: '';
  transition: transform .4s var(--ease), background .3s;
}

.dks-acc-icon::after { transform: rotate(90deg); }
.hi-info-card.open .dks-acc-icon { background: #0a2a4f; transform: rotate(180deg); }
.hi-info-card.open .dks-acc-icon::before,
.hi-info-card.open .dks-acc-icon::after { background: #fff; }
.hi-info-card.open .dks-acc-icon::after { transform: rotate(0); }

.dks-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .45s var(--ease), opacity .35s ease;
}

.hi-info-card.open .dks-acc-panel { grid-template-rows: 1fr; opacity: 1; }
.dks-acc-inner { min-height: 0; overflow: hidden; }
.dks-acc-body { padding: 0 28px 22px 92px; }
.dks-acc-body::before { display: block; width: 46px; height: 3px; margin-bottom: 12px; border-radius: 3px; background: #0a2a4f; content: ''; }
.dks-acc-subtitle { margin: 0 0 8px; color: #0a2a4f; font-size: 16px; font-weight: 800; line-height: 1.4; }
.dks-acc-body p { max-width: 60ch; margin: 0; color: #4b5a70; font-size: 14px; line-height: 1.65; }
.dks-acc-body p + p { margin-top: 10px; }
.dks-acc-body strong { color: #0a2a4f; font-weight: 700; }
#main .dks-acc-body ul { max-width: 60ch; margin: 10px 0; padding-left: 20px; list-style: disc; color: #4b5a70; font-size: 14px; line-height: 1.65; }

.dks-updates-board {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(160deg, #0a2a4f 0%, #12397a 70%, #0d2f5e 100%);
  box-shadow: 0 20px 44px rgba(10, 42, 79, .22);
}

.dks-updates-board::before {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 61, .22), transparent 70%);
  content: '';
  pointer-events: none;
}

.dks-updates-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 18px; }
.dks-updates-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.dks-updates-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 600; }
.dks-updates-live i { width: 8px; height: 8px; border-radius: 50%; background: #f5b83d; animation: dks-news-pulse 2s ease-out infinite; }

@keyframes dks-news-pulse {
  to { box-shadow: 0 0 0 10px rgba(245, 184, 61, 0); }
}

.dks-updates-viewport {
  position: relative;
  flex: 1;
  min-height: 360px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 24px), transparent 100%);
}

.dks-updates-track { position: absolute; top: 0; right: 0; left: 0; margin: 0; padding: 0 14px; list-style: none; animation: dks-update-scroll 30s linear infinite; }
.dks-updates-viewport:hover .dks-updates-track,
.dks-updates-viewport:focus-within .dks-updates-track { animation-play-state: paused; }

@keyframes dks-update-scroll { to { transform: translateY(-50%); } }

.dks-update-item { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.dks-update-item:nth-last-child(-n+5) { border-bottom: 0; }
.dks-update-item[aria-hidden="true"] { pointer-events: none; }
.dks-update-item[aria-hidden="true"] * { user-select: none; }
.dks-update-date { flex: none; width: 62px; padding: 8px 3px 7px; border-radius: 12px; color: #0a2a4f; background: #f5b83d; text-align: center; line-height: 1; font-style: normal; }
.dks-update-date b { display: block; font-size: 21px; font-weight: 800; }
.dks-update-date span { display: block; margin-top: 4px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.dks-update-copy { min-width: 0; }
.dks-update-copy h3 { margin: 0; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.35; }
.dks-update-copy p { margin: 4px 0 0; color: rgba(255, 255, 255, .7); font-size: 12px; line-height: 1.45; }

@media (max-width: 960px) {
  .dks-home-content { grid-template-columns: 1fr; }
  .dks-updates-board { min-height: 390px; }
  .dks-updates-viewport { min-height: 320px; }
}

@media (max-width: 575px) {
  .dks-intro-news { padding-right: 14px; padding-left: 14px; }
  .dks-home-content { gap: 22px; }
  .dks-acc-btn { gap: 12px; padding: 15px 14px; }
  .dks-acc-btn .hi-card-num { min-width: 40px; font-size: 30px; }
  .dks-acc-title { font-size: 16px; }
  .dks-acc-icon { width: 32px; height: 32px; }
  .dks-acc-body { padding: 0 18px 18px; }
  .dks-updates-board { min-height: 380px; border-radius: 18px; }
  .dks-updates-head { padding: 18px 18px 14px; }
  .dks-updates-head h2 { font-size: 20px; }
  .dks-updates-viewport { min-height: 310px; }
  .dks-update-item { gap: 11px; padding: 12px 8px; }
  .dks-update-date { width: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .hi-info-card, .dks-acc-btn .hi-card-num, .dks-acc-icon, .dks-acc-panel { transition: none; }
  .dks-updates-live i { animation: none; }
  .dks-updates-viewport { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
  .dks-updates-track { position: static; animation: none; }
  .dks-updates-track > [aria-hidden="true"] { display: none; }
}

/* ===================== HOME MGT + CONTACT SECTION ===================== */
.home-mgt {
  background: linear-gradient(160deg, #f0f5fb 0%, #eef2f9 50%, #f5f0fb 100%);
  padding: clamp(48px, 7vw, 96px) 0;
  position: relative;
  overflow: hidden;
}

/* Decorative background orbs */
.home-mgt::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9, 75, 126, 0.06) 0%, transparent 70%);
  top: -120px; left: -80px;
  pointer-events: none;
}

.home-mgt::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 182, 0, 0.07) 0%, transparent 70%);
  bottom: -80px; right: -40px;
  pointer-events: none;
}

.mgt-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ---- LEFT PANEL ---- */
.mgt-left {
  position: relative;
}

.mgt-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.mgt-label::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.mgt-feature {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mgt-card {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

/* Avatar sits partially overlapping the card panel */
.mgt-card-avatar {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-top: 24px;
  margin-right: -20px;
}

.mgt-avatar-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(5, 50, 89, 0.25);
  display: block;
}

.mgt-card-body {
  flex: 1;
  background: linear-gradient(135deg, var(--hdr-start), var(--hdr-end));
  border-radius: 20px;
  padding: 28px 28px 28px 40px;
  box-shadow: 0 16px 40px rgba(5, 50, 89, 0.2);
  position: relative;
  overflow: hidden;
}

/* Subtle inner shine */
.mgt-card-body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.mgt-card-body p {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.mgt-card-meta {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mgt-card-meta strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.mgt-card-meta span {
  font-size: 13.5px;
  color: var(--gold);
  font-weight: 600;
}

.mgt-card-meta em {
  font-size: 12.5px;
  font-style: normal;
  color: rgba(255,255,255,0.6);
}

.mgt-quote {
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 100px;
  color: var(--hdr-start);
  opacity: 0.3;
  pointer-events: none;
}

/* ---- RIGHT PANEL ---- */
.mgt-right {
  display: flex;
  flex-direction: column;
}

.mgt-form-wrap {
  background: #fff;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 20px 60px rgba(5, 50, 89, 0.1);
  border: 1px solid rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
}

.mgt-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hdr-start), var(--gold), var(--hdr-end));
  border-radius: 24px 24px 0 0;
}

.mgt-form-header {
  margin-bottom: 28px;
}

.mgt-form-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hdr-start);
  background: rgba(9, 75, 126, 0.08);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}

.mgt-form-header h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.mgt-form-header p {
  margin: 0;
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}

.mgt-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mgt-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mgt-label-field {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: 0.02em;
}

.mgt-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mgt-field-icon {
  position: absolute;
  left: 14px;
  width: 18px; height: 18px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.3s;
  flex-shrink: 0;
}

.mgt-field-icon--top {
  top: 14px;
  align-self: flex-start;
}

.mgt-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy-900);
  background: #f8fafc;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  outline: none;
  resize: none;
}

.mgt-input::placeholder { color: #94a3b8; }

.mgt-input:focus {
  border-color: var(--hdr-end);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(9, 75, 126, 0.1);
}

.mgt-input:focus + .mgt-field-icon,
.mgt-input-wrap:focus-within .mgt-field-icon {
  color: var(--hdr-end);
}

/* Fix: icon needs to come BEFORE input for the sibling trick, so we use focus-within on the wrap */
.mgt-textarea-wrap { align-items: flex-start; }
.mgt-textarea { padding-top: 13px; }

.mgt-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--hdr-start), var(--hdr-end));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 6px 20px rgba(5, 50, 89, 0.3);
}

.mgt-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(5, 50, 89, 0.4);
}

.mgt-submit:active { transform: translateY(0); }

.mgt-submit-icon {
  width: 18px; height: 18px;
  transition: transform 0.3s var(--ease);
}

.mgt-submit:hover .mgt-submit-icon {
  transform: translate(3px, -3px);
}

/* Loading state */
.mgt-submit.is-loading .mgt-submit-text::after {
  content: '…';
}

.mgt-form-msg {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.mgt-form-msg.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.mgt-form-msg.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 900px) {
  .mgt-inner {
    grid-template-columns: 1fr;
  }
  .mgt-left { order: 2; }
  .mgt-right { order: 1; }
}

@media (max-width: 480px) {
  .mgt-card { flex-direction: column; }
  .mgt-card-avatar { margin: 0 0 -20px 20px; }
  .mgt-card-body { padding: 32px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .mgt-submit, .mgt-input, .mgt-card-body { transition: none; }
}

/* ===================== HOME CONTACT / INFO SECTION ===================== */
.home-contact {
  padding: clamp(40px, 6vw, 72px) clamp(16px, 5vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.hc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.hc-header h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.hc-header p {
  margin: 6px 0 0;
  color: var(--navy-800);
  opacity: 0.8;
  max-width: 46ch;
}


.hc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .hc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .hc-grid { grid-template-columns: 1fr; }
}

.hc-card {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px -14px rgba(0, 20, 40, 0.15);
  color: var(--navy-900);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(0, 20, 40, 0.25);
}

.hc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.5) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
  pointer-events: none;
}

.hc-card:hover::after {
  transform: translateX(120%);
}

.hc-card.grad-blue { background: linear-gradient(145deg, #dbeafe, #ede9fe); --ic: #3b5bdb; }
.hc-card.grad-peach { background: linear-gradient(145deg, #ffedd5, #fde2e4); --ic: #d9480f; }
.hc-card.grad-cyan { background: linear-gradient(145deg, #ccfbf1, #dbeafe); --ic: #0c8599; }
.hc-card.grad-yellow { background: linear-gradient(145deg, #fef9c3, #ffedd5); --ic: #b7791f; }
.hc-card.grad-green { background: linear-gradient(145deg, #dcfce7, #ecfccb); --ic: #2b8a3e; }
.hc-card.grad-pink { background: linear-gradient(145deg, #fce7f3, #ede9fe); --ic: #a61e6b; }

.hc-ico {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ic);
  margin-bottom: 16px;
  box-shadow: 0 6px 14px -8px var(--ic);
}

.hc-ico svg {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.hc-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hc-card p {
  margin: 0;
  color: var(--navy-800);
  font-size: 15px;
  opacity: 0.9;
}

.hc-card a {
  color: var(--ic);
  font-weight: 700;
  text-underline-offset: 3px;
}

.hc-rows {
  list-style: none;
  margin: 0; padding: 0;
}

.hc-rows li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 15px;
  color: var(--navy-800);
}

.hc-rows li::after {
  content: "";
  order: 1; flex: 1;
  border-bottom: 2px dotted rgba(0, 20, 40, 0.2);
  transform: translateY(-4px);
}

.hc-rows span { order: 0; opacity: 0.9; }
.hc-rows b { order: 2; font-weight: 600; color: var(--navy-900); white-space: nowrap; }

.hc-note {
  margin-top: 12px;
  font-size: 14px;
}
