/* ===================================
   ANED - ANED Center
   Navy: #1B3A6B | Gold: #C8960C
=================================== */

/* ===================================================================
   LOGIN PAGE — Hide nav elements, keep only language changer
=================================================================== */
.aned-login-page .mil-logo,
.aned-login-page .mil-header-cta,
.aned-login-page .mil-menu-btn,
.aned-login-page .mil-frame-bottom,
.aned-login-page .mil-progress-track,
.aned-login-page .mil-preloader,
.aned-login-page .mil-ball,
.aned-login-page .aned-chat-toggle,
.aned-login-page .aned-chat-window,
.aned-login-page .mil-current-page,
.aned-login-page .mil-back-to-top,
.aned-login-page .mil-cookie-banner,
.aned-login-page .aned-greeting {
  display: none !important;
}
.aned-login-page .mil-frame-top {
  justify-content: flex-end;
}
/* Navy dodecahedrons on the login page */
.aned-login-page .mil-animation {
  opacity: 0.2 !important;
  width: 380px !important;
  height: 380px !important;
}
.aned-login-page .mil-animation .mil-dodecahedron {
  transform-origin: center center;
  scale: 1.3;
}
.aned-login-page .mil-pentagon div {
  border-top: 1px solid #1B3A6B !important;
}
.aned-login-page .mil-position-2,
.aned-login-page .mil-position-3 {
  display: block !important;
}
.aned-login-page .mil-frame {
  pointer-events: none;
}
.aned-chat-page .mil-frame,
.aned-chat-page .mil-menu-frame,
.aned-chat-page .aned-chat-toggle,
.aned-chat-page .aned-chat-window,
.aned-chat-page .mil-cookie-banner {
  display: none !important;
}
.aned-login-page .mil-lang-wrap {
  pointer-events: all;
}

/* Team member page: Next Team Member link ordering */
.mil-next-team-mobile { display: none; }

@media screen and (max-width: 992px) {
  .mil-next-team-desktop { display: none !important; }
  .mil-next-team-mobile {
    display: inline-flex !important;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
  }
}

/* ===================================================================
   ACCORDION MINUS/PLUS SIGN FIX — Pure CSS toggle, no GSAP dependency
=================================================================== */
.mil-accordion-group .mil-accordion-menu .mil-symbol {
  font-size: 24px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
/* Hide the raw +/- elements entirely — we use ::after on the symbol instead */
.mil-accordion-group .mil-accordion-menu .mil-symbol .mil-plus,
.mil-accordion-group .mil-accordion-menu .mil-symbol .mil-minus {
  display: none !important;
}
/* Default state: show + */
.mil-accordion-group .mil-accordion-menu .mil-symbol::after {
  content: "+";
  color: #1B3A6B;
  font-size: 24px;
  font-weight: 700;
}
/* Open state: GSAP sets inline background on .mil-symbol when open */
.mil-accordion-group.mil-open .mil-accordion-menu .mil-symbol::after {
  content: "−";
  color: #fff;
}

/* ===================================================================
   CLIENTS PILL MARQUEE — Dark pill badges scrolling in two rows
=================================================================== */
.mil-pill-marquee {
  overflow: hidden;
  width: 100%;
  margin-bottom: 16px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.mil-pill-track {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  width: max-content;
  animation: mil-pill-scroll 35s linear infinite;
}
.mil-pill-reverse .mil-pill-track {
  animation: mil-pill-scroll-reverse 30s linear infinite;
}
.mil-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 60px;
  padding: 10px 24px 10px 12px;
  color: rgba(0, 0, 0, 0.7);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.mil-pill:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(200, 150, 12, 0.5);
  box-shadow: 0 2px 8px rgba(200, 150, 12, 0.15);
}
.mil-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  font-size: 16px;
  flex-shrink: 0;
}
@keyframes mil-pill-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes mil-pill-scroll-reverse {
  0% { transform: translateX(-33.33%); }
  100% { transform: translateX(0); }
}
@media screen and (max-width: 768px) {
  .mil-pill {
    font-size: 13px;
    padding: 8px 18px 8px 10px;
    gap: 10px;
  }
  .mil-pill-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .mil-pill-track {
    gap: 12px;
    animation-duration: 25s;
  }
  .mil-pill-reverse .mil-pill-track {
    animation-duration: 22s;
  }
}

/* ===================================================================
   STATS CARDS — Center on mobile
=================================================================== */
@media screen and (max-width: 768px) {
  .mil-count-card {
    text-align: center;
  }
}

/* ===================================================================
   LOGO SCROLL ANIMATION — Full name → Short name on scroll
=================================================================== */
.mil-logo {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  white-space: nowrap;
}

.mil-logo-full,
.mil-logo-short {
  display: inline-block;
  transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              max-width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mil-logo-full {
  opacity: 1;
  transform: translateY(0);
  max-width: 500px;
}

.mil-logo-short {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(12px);
  max-width: 500px;
}

/* Scrolled state */
.mil-logo.mil-scrolled .mil-logo-full {
  opacity: 0;
  transform: translateY(-12px);
  max-width: 0;
  overflow: hidden;
}

.mil-logo.mil-scrolled .mil-logo-short {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   LOGO RESPONSIVE — Fit on one line for smaller devices
=================================================================== */
@media screen and (max-width: 1200px) {
  .mil-logo-full {
    font-size: 28px;
  }
  .mil-logo-short {
    font-size: 28px;
  }
}

@media screen and (max-width: 768px) {
  .mil-logo-full {
    font-size: 22px;
  }
  .mil-logo-short {
    font-size: 22px;
  }
}

@media screen and (max-width: 480px) {
  .mil-logo-full {
    font-size: 18px;
  }
  .mil-logo-short {
    font-size: 18px;
  }
}

/* --- Remove all nav list dots --- */
.mil-main-menu ul,
.mil-main-menu ul ul,
.mil-footer-menu ul,
.mil-menu-list,
.mil-social-icons {
  list-style: none !important;
}

/* ===================================================================
   MENU HEADING TEXT WRAPPING FIX — Keep "ANED Group Products" on one line
=================================================================== */
.mil-menu-right h6 {
  white-space: nowrap;
}

/* ===================================================================
   LANGUAGE SWITCHER
=================================================================== */
.mil-lang-btn {
  pointer-events: all;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(27,58,107,0.2);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #1B3A6B;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.mil-lang-btn:hover {
  border-color: #C8960C;
  color: #C8960C;
}
.mil-lang-btn .mil-lang-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Dark section / mobile override */
.mil-frame.mil-top-dark .mil-lang-btn,
.mil-menu-frame .mil-frame-top .mil-lang-btn {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.mil-frame.mil-top-dark .mil-lang-btn:hover,
.mil-menu-frame .mil-frame-top .mil-lang-btn:hover {
  border-color: #C8960C;
  color: #C8960C;
}
.mil-frame.mil-top-dark .mil-lang-btn .mil-lang-icon path,
.mil-menu-frame .mil-frame-top .mil-lang-btn .mil-lang-icon path {
  fill: #fff;
}

@media screen and (max-width: 1200px) {
  .mil-lang-btn {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
  }
  .mil-lang-btn .mil-lang-icon path {
    fill: #fff;
  }
  .mil-frame .mil-frame-top {
    gap: 12px;
  }
}

/* Language dropdown */
.mil-lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 10000;
  display: none;
  padding: 6px 0;
  pointer-events: all;
}
.mil-lang-dropdown.mil-active {
  display: block;
}
.mil-lang-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #1B3A6B;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.mil-lang-dropdown a:hover {
  background: #f4f5f8;
  color: #C8960C;
}
.mil-lang-dropdown a.mil-lang-active {
  font-weight: 600;
  color: #C8960C;
}

/* Frame top flex layout to accommodate language btn */
.mil-frame-top {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}
.mil-frame-top .mil-lang-wrap {
  margin-left: auto;
  margin-right: 20px;
  position: relative;
  pointer-events: all;
  z-index: 10001;
}

/* ===================================================================
   CATEGORY LIST — Allow wrapping on single line
=================================================================== */
.mil-category-list {
  flex-wrap: nowrap !important;
  gap: 8px !important;
  white-space: nowrap;
}
.mil-category-list li {
  margin-right: 0 !important;
  margin-bottom: 0 !important;
}
.mil-category-list li a {
  padding: 0 20px !important;
  font-size: 13px !important;
  letter-spacing: 1.5px !important;
  height: 40px !important;
  white-space: nowrap;
}
@media screen and (max-width: 768px) {
  .mil-category-list {
    flex-wrap: wrap !important;
  }
}

/* --- Button — equal padding fix --- */
.mil-button {
  padding: 0 15px 0 30px !important;
}
.mil-button svg {
  margin-left: 10px !important;
}
.mil-button.mil-icon-button {
  padding: 15px !important;
}
.mil-button.mil-icon-button svg {
  margin-left: 0 !important;
}
.mil-button.mil-icon-button-sm {
  padding: 5px !important;
  background-color: transparent !important;
  border-radius: 0 !important;
}
.mil-button.mil-icon-button-sm svg {
  margin-left: 0 !important;
  background-color: #C8960C !important;
}

/* ===================================================================
   BUTTON RESPONSIVE — Adapt button sizing for smaller devices
=================================================================== */
/* Icon-button-sm maintains circular shape on all devices */

@media screen and (max-width: 480px) {
  .mil-button.mil-icon-button-sm {
    height: 40px !important;
    padding: 5px !important;
  }
  .mil-button.mil-icon-button-sm svg {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
  }
}

/* --- Suptitle marker (gold) --- */
.mil-suptitle::before,
.mil-suptitle-right::before { background-color: #C8960C; }

/* --- Blog articles — ensure minimum height so footer doesn't overlap nav --- */
#blogArticles {
  min-height: 400px;
}

/* --- Soft background --- */
.mil-soft-bg { background-color: #f4f5f8; }

/* --- Projects slider — allow prev/next slides to peek from edges --- */
.mil-portfolio-slider.swiper {
  overflow: visible !important;
}
.mil-portfolio-slider-frame {
  overflow: hidden;
  margin-bottom: 60px;
}
.mil-portfolio-nav {
  z-index: 5;
  pointer-events: all;
}
.mil-portfolio-nav .mil-portfolio-btns-frame {
  pointer-events: all;
}
/* Ensure active slide button is always clickable (fix loop mode) */
.swiper-slide-active .mil-portfolio-item .mil-descr,
.swiper-slide-active .mil-portfolio-item .mil-descr a {
  pointer-events: all !important;
  position: relative;
  z-index: 5;
}
.mil-portfolio-nav .mil-slider-arrow {
  cursor: pointer;
  pointer-events: all;
}

/* --- Dark banner padding bottom — breathing room after last element --- */
.mil-dark-bg > .mil-inner-banner {
  padding-bottom: 25px;
}

/* --- Team card background on desktop --- */
@media screen and (min-width: 993px) {
  .mil-team-card {
    background-color: #1B3A6B;
  }
  .mil-team-card img {
    object-position: top center;
  }
}

/* --- Individual team profile: blend away white image background --- */
.mil-banner-personal .mil-portrait-frame img {
  mix-blend-mode: multiply;
}

/* --- Team card hover --- */
.mil-team-card .mil-description {
  background: linear-gradient(0deg, rgba(27, 58, 107, 0.9) 0%, transparent 100%);
}

/* Mobile: always show team card info without hover */
@media screen and (max-width: 992px) {
  .mil-team-card .mil-description {
    opacity: 1 !important;
    pointer-events: all !important;
    -webkit-transition: none !important;
    transition: none !important;
  }
  .mil-team-card .mil-description .mil-secrc-text {
    opacity: 1 !important;
    -webkit-transform: translateY(0) !important;
    transform: translateY(0) !important;
    -webkit-transition: none !important;
    transition: none !important;
  }
  .mil-team-card:after {
    width: 100% !important;
  }
}

/* --- Scrollbar track --- */
.mil-progress-track { background-color: rgba(27, 58, 107, 0.1); }

/* --- Accent color (gold) --- */
.mil-accent { color: #C8960C !important; }

/* --- Cursor ball --- */
.mil-ball { background: #1B3A6B; }

/* ===================================================================
   Z-INDEX FIX
=================================================================== */
footer.mil-dark-bg {
  position: relative;
  z-index: 2 !important;
}
.mil-frame { z-index: 101 !important; }
.mil-menu-frame { z-index: 100 !important; }
.mil-menu-frame.mil-active { z-index: 102 !important; }
.mil-preloader { z-index: 9999 !important; }

/* On mobile, frame must sit ABOVE the menu overlay so hamburger close works */
@media screen and (max-width: 1200px) {
  .mil-frame { z-index: 999 !important; overflow: visible !important; }
  .mil-frame .mil-frame-top { overflow: visible !important; }
  .mil-menu-frame { z-index: 998 !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; display: flex !important; flex-direction: column !important; justify-content: center !important; }
  .mil-menu-frame .container {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }
  .mil-main-menu {
    height: auto !important;
  }
  .mil-inner-banner .mil-banner-content {
    padding: 120px 0 0 0 !important;
  }
}

/* Mobile navbar adjustments (base mobile handled by style.css at 1200px) */
@media screen and (max-width: 768px) {
  /* Ensure frame allows dropdown overflow and all children are clickable */
  .mil-frame {
    overflow: visible !important;
  }
  .mil-frame .mil-frame-top {
    overflow: visible !important;
    padding: 0 20px !important;
  }

  .mil-content {
    position: relative !important;
    z-index: 1 !important;
  }

  /* Footer — add breathing room from screen edges */
  footer .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ===================================================================
   FRAME TOP (Logo + Hamburger)
   Default: navy. When mil-top-dark is on frame: white.
=================================================================== */
.mil-frame .mil-logo {
  color: #1B3A6B !important;
  transition: color 0.3s ease;
}
.mil-frame .mil-menu-btn span,
.mil-frame .mil-menu-btn span:after,
.mil-frame .mil-menu-btn span:before {
  background: #1B3A6B !important;
  transition: background 0.3s ease;
}

/* Top over dark section */
.mil-frame.mil-top-dark .mil-logo {
  color: #fff !important;
}
.mil-frame.mil-top-dark .mil-menu-btn span,
.mil-frame.mil-top-dark .mil-menu-btn span:after,
.mil-frame.mil-top-dark .mil-menu-btn span:before {
  background: #fff !important;
}

/* ===================================================================
   FRAME BOTTOM (Sidebar label + Back to top)
   Default: navy. When mil-bottom-dark is on frame: white.
=================================================================== */
.mil-frame .mil-frame-bottom .mil-current-page {
  color: #1B3A6B !important;
  transition: color 0.3s ease;
}
.mil-frame .mil-frame-bottom .mil-back-to-top .mil-link,
.mil-frame .mil-frame-bottom .mil-back-to-top .mil-link span {
  color: #1B3A6B !important;
  transition: color 0.3s ease;
}
.mil-frame .mil-frame-bottom .mil-back-to-top .mil-link svg path {
  fill: #1B3A6B !important;
  transition: fill 0.3s ease;
}

/* Bottom over dark section */
.mil-frame.mil-bottom-dark .mil-frame-bottom .mil-current-page {
  color: #fff !important;
}
.mil-frame.mil-bottom-dark .mil-frame-bottom .mil-back-to-top .mil-link,
.mil-frame.mil-bottom-dark .mil-frame-bottom .mil-back-to-top .mil-link span {
  color: #fff !important;
}
.mil-frame.mil-bottom-dark .mil-frame-bottom .mil-back-to-top .mil-link svg path {
  fill: #fff !important;
}

/* ===================================================================
   MENU OVERLAY — always white (dark navy overlay bg)
=================================================================== */
.mil-menu-frame .mil-frame-top .mil-logo {
  color: #fff !important;
}
.mil-menu-frame .mil-frame-top .mil-menu-btn span,
.mil-menu-frame .mil-frame-top .mil-menu-btn span:after,
.mil-menu-frame .mil-frame-top .mil-menu-btn span:before {
  background: #fff !important;
}

/* ===================================================================
   MOBILE — frame has navy bg, everything white
=================================================================== */
@media screen and (max-width: 1200px) {
  .mil-frame .mil-logo { color: #fff !important; }
  .mil-frame .mil-menu-btn span,
  .mil-frame .mil-menu-btn span:after,
  .mil-frame .mil-menu-btn span:before { background: #fff !important; }
}

/* ===================================================================
   REVIEW PAGINATION — Face image bullets
=================================================================== */
.mil-revi-pagination .swiper-pagination-bullet {
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: none !important;
  opacity: 0.6 !important;
  transition: all 0.4s ease !important;
  border: 3px solid transparent !important;
  box-shadow: none !important;
}
.mil-revi-pagination .swiper-pagination-bullet:hover {
  opacity: 0.9 !important;
}
.mil-revi-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  opacity: 1 !important;
  border-color: #C8960C !important;
  box-shadow: 0 0 0 3px #C8960C !important;
}
.mil-revi-pagination .swiper-pagination-bullet img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}
@media screen and (max-width: 992px) {
  .mil-revi-pagination .swiper-pagination-bullet {
    width: 60px !important;
    height: 60px !important;
  }
}

/* ===================================================================
   PRICE CARD — Gold accent for price numbers on dark bg
=================================================================== */
.mil-price-card .mil-price-number {
  color: #C8960C;
}

/* ===================================================================
   PRICING CARDS — Styled with soft bg + hover effects
=================================================================== */
.mil-pricing-card-light {
  border: 1px solid rgba(0,0,0,0.08);
  padding: 40px 25px;
  text-align: center;
  height: 100%;
  background: #f8f9fb;
  border-radius: 6px;
  transition: all 0.4s ease;
  cursor: pointer;
}
.mil-pricing-card-light:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(27, 58, 107, 0.12);
  border-color: #C8960C;
}
.mil-pricing-card-light h5 {
  color: #1B3A6B;
  margin-bottom: 15px;
}
.mil-pricing-card-light .mil-pricing-subtitle {
  font-weight: 500;
  color: #1B3A6B;
  margin-bottom: 10px;
}
.mil-pricing-card-light .mil-pricing-desc {
  font-size: 14px;
  color: rgba(0,0,0,0.5);
  line-height: 1.7;
}

/* Enterprise (highlighted) card */
.mil-pricing-card-enterprise {
  background: #1B3A6B;
  border: 1px solid #1B3A6B;
  padding: 40px 25px;
  text-align: center;
  height: 100%;
  border-radius: 6px;
  color: #fff;
  transition: all 0.4s ease;
  cursor: pointer;
}
.mil-pricing-card-enterprise:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(27, 58, 107, 0.3);
}
.mil-pricing-card-enterprise h5 {
  color: #C8960C;
  margin-bottom: 15px;
}
.mil-pricing-card-enterprise .mil-pricing-subtitle {
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
}
.mil-pricing-card-enterprise .mil-pricing-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ===================================================================
   OTHER SERVICES CARDS — White text on hover (gold background)
=================================================================== */
.mil-service-card-lg.mil-other-card:hover h4,
.mil-service-card-lg.mil-other-card:hover h5 {
  color: #fff !important;
}
.mil-service-card-lg.mil-other-card:hover .mil-descr,
.mil-service-card-lg.mil-other-card:hover p {
  color: rgba(255,255,255,0.85) !important;
}
.mil-service-card-lg.mil-other-card:hover .mil-service-list li {
  color: #fff !important;
  border-color: rgba(255,255,255,0.2) !important;
}
.mil-service-card-lg.mil-other-card:hover .mil-link span {
  color: #fff !important;
}
.mil-service-card-lg.mil-other-card:hover .mil-service-list.mil-dark li {
  border-color: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}
.mil-service-card-lg.mil-other-card:hover .mil-service-list.mil-dark li:first-child {
  border-top-color: rgba(255,255,255,0.2) !important;
}
.mil-service-card-lg.mil-other-card:hover {
  border-color: rgb(200, 150, 12) !important;
}
/* Smooth transition for all text inside the card */
.mil-service-card-lg.mil-other-card h4,
.mil-service-card-lg.mil-other-card p,
.mil-service-card-lg.mil-other-card .mil-descr,
.mil-service-card-lg.mil-other-card .mil-service-list li,
.mil-service-card-lg.mil-other-card .mil-link span {
  transition: color 0.4s ease;
}
.mil-service-card-lg.mil-other-card .mil-service-list li {
  transition: color 0.4s ease, border-color 0.4s ease;
}

/* ===================================================================
   TEXT WRAPPING FIX — Prevent overflow on all screen sizes
=================================================================== */
h1, h2, h3, h4, h5, h6,
.mil-h1, .mil-h2, .mil-h3,
.mil-banner-content h1,
.mil-accordion-head,
.mil-suptitle,
.mil-suptitle-right {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p, li, a, span, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ===================================================================
   HERO BANNER — Larger description text
=================================================================== */
.mil-banner-content p {
  font-size: 18px;
  line-height: 1.7;
}

/* ===================================================================
   BUTTON FIX — Allow wrapping on mobile for long button text
=================================================================== */
@media screen and (max-width: 768px) {
  .mil-button {
    padding: 0 10px 0 25px !important;
    height: auto !important;
    min-height: 55px;
    text-align: center;
  }
  .mil-button span {
    white-space: normal !important;
    line-height: 1.4;
    padding: 12px 0;
    display: inline-block;
  }
  .mil-button svg {
    margin-left: 15px;
    flex-shrink: 0;
  }
  .mil-link svg {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 8px;
    margin-left: 12px;
  }

  /* Center subscribe arrow button vertically within the input */
  .mil-subscribe-form,
  .mil-subscribe-form-2 {
    position: relative !important;
  }
  .mil-subscribe-form input,
  .mil-subscribe-form-2 input {
    height: 100% !important;
    margin-bottom: 0 !important;
  }
  .mil-subscribe-form .mil-button.mil-icon-button-sm,
  .mil-subscribe-form-2 .mil-button.mil-icon-button-sm {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%) !important;
    height: 40px !important;
    min-height: unset !important;
    padding: 5px !important;
    margin-top: 0 !important;
  }
  .mil-subscribe-form .mil-button.mil-icon-button-sm:hover,
  .mil-subscribe-form-2 .mil-button.mil-icon-button-sm:hover {
    transform: translateY(-50%) scale(1.015) !important;
  }
  .mil-subscribe-form .mil-button.mil-icon-button-sm svg,
  .mil-subscribe-form-2 .mil-button.mil-icon-button-sm svg {
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 8px !important;
    border-radius: 50% !important;
  }
}

/* ===================================================================
   MOBILE — Phones up to 480px (iPhone 13 Pro Max, Galaxy S, etc.)
=================================================================== */
@media screen and (max-width: 480px) {
  /* Typography */
  h1, .mil-h1 {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }
  h2, .mil-h2 {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
  h3, .mil-h3 {
    font-size: 19px !important;
    line-height: 1.3 !important;
  }
  h4, .mil-h4 {
    font-size: 16px !important;
  }
  p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  .mil-banner-content h1 {
    font-size: 32px !important;
    line-height: 1.15 !important;
  }
  .mil-suptitle, .mil-suptitle-right {
    font-size: 11px !important;
    line-height: 1.6 !important;
  }

  /* Buttons */
  .mil-button {
    padding: 0 8px 0 18px !important;
    font-size: 11px !important;
    letter-spacing: 1px;
    min-height: 48px;
  }
  .mil-button svg {
    width: 34px;
    height: 34px;
    margin-left: 10px;
    padding: 8px;
  }
  .mil-link svg {
    width: 32px;
    height: 32px;
    padding: 7px;
    margin-left: 10px;
  }

  /* Spacing */
  .mil-p-120-120, .mil-p-120-90, .mil-p-120-60, .mil-p-120-30 {
    padding-top: 60px !important;
    padding-bottom: 40px !important;
  }
  .mil-p-60-60 {
    padding-top: 40px !important;
    padding-bottom: 30px !important;
  }
  .mil-mb-60 { margin-bottom: 35px !important; }
  .mil-mb-90 { margin-bottom: 50px !important; }

  /* Container */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Team cards — preserve aspect ratio */
  .mil-team-card {
    padding-bottom: 120% !important;
  }

  /* Reduce gap between team section and projects slider */
  .mil-portfolio-slider-frame {
    padding-top: 60px !important;
  }

  /* Service cards */
  .mil-service-card {
    padding: 25px 18px !important;
  }
  .mil-service-list li {
    font-size: 13px !important;
  }

  /* Accordion */
  .mil-accordion-head {
    font-size: 11px !important;
    letter-spacing: 1px !important;
    padding: 15px 18px !important;
  }

  /* Info and nav */
  .mil-info {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .mil-info > div {
    font-size: 12px !important;
  }
  .mil-works-nav {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
  }

  /* Footer — breathing room from edges */
  footer .container {
    padding-left: 25px !important;
    padding-right: 25px !important;
  }

  /* Partner logos */
  .mil-partner-frame span {
    font-size: 14px !important;
  }

  /* Individual team profile pages */
  .mil-banner-personal .mil-personal-text {
    text-align: center;
  }
  .mil-banner-personal .mil-portrait-frame {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Forms */
  input, textarea {
    font-size: 13px !important;
  }

  /* Blog cards */
  .mil-post-text {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
}

@media screen and (max-width: 768px) {
  .mil-banner-content h1 {
    font-size: 36px !important;
    line-height: 1.2 !important;
  }
  .mil-inner-banner {
    padding-top: 0 !important;
  }
  .mil-inner-banner .mil-banner-content {
    padding-top: 110px !important;
  }
  .mil-info {
    flex-wrap: wrap;
  }
  .mil-breadcrumbs {
    flex-wrap: wrap;
  }
  .mil-breadcrumbs li {
    font-size: 11px;
  }
  .mil-works-nav {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
}

/* ===================================================================
   HEADER CTA BUTTON
=================================================================== */
.mil-header-cta {
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #C8960C;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s;
  margin-right: 15px;
}
.mil-header-cta:hover {
  filter: brightness(110%);
  transform: scale(1.03);
}
@media screen and (max-width: 1200px) {
  .mil-header-cta { display: none !important; }
}

/* ===================================================================
   IPHONE SE / EXTRA SMALL — (375px and below)
=================================================================== */
@media screen and (max-width: 375px) {
  /* Typography - reduce sizes for ultra-small screens */
  h1, .mil-h1 {
    font-size: 26px !important;
    line-height: 1.1 !important;
  }
  h2, .mil-h2 {
    font-size: 22px !important;
  }
  h3, .mil-h3 {
    font-size: 18px !important;
  }
  h4, .mil-h4 {
    font-size: 15px !important;
  }
  p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  
  /* Tight padding and margins */
  .mil-p-120-120 { padding: 40px 0 !important; }
  .mil-mb-60 { margin-bottom: 30px !important; }
  .mil-pb-60 { padding-bottom: 30px !important; }
  .mil-mt-60 { margin-top: 30px !important; }
  
  /* Buttons - ultra compact */
  .mil-button {
    padding: 0 6px 0 15px !important;
    min-height: 42px !important;
    height: auto !important;
    font-size: 10px !important;
    letter-spacing: 0.5px !important;
  }
  .mil-button svg {
    width: 30px !important;
    height: 30px !important;
    padding: 7px !important;
    margin-left: 8px !important;
  }
  .mil-link svg {
    width: 28px !important;
    height: 28px !important;
    padding: 6px !important;
    margin-left: 8px !important;
  }
  .mil-button.mil-icon-button-sm {
    height: 40px !important;
    padding: 5px !important;
    margin-top: 0 !important;
  }
  .mil-button.mil-icon-button-sm svg {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Forms - compact on small screens */
  input, textarea {
    min-height: 44px !important;
    height: auto !important;
    padding: 0 20px !important;
    font-size: 12px !important;
    margin-bottom: 20px !important;
  }
  textarea {
    min-height: 100px !important;
    padding: 12px 20px !important;
  }
  
  /* Banner and inner content padding */
  .mil-inner-banner {
    padding-bottom: 40px !important;
  }
  .mil-inner-banner .mil-banner-content {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }
  
  /* Service cards - stack better */
  .mil-service-card {
    padding: 20px 15px !important;
  }
  .mil-service-list li {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }
  
  /* Breadcrumbs - smaller and tighter */
  .mil-breadcrumbs li {
    font-size: 10px !important;
  }
  
  /* Container and grid padding */
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Suptitle - very small */
  .mil-suptitle, .mil-suptitle-right {
    font-size: 10px !important;
    letter-spacing: 1px !important;
  }
  
  /* Links and text sizing */
  .mil-link span {
    font-size: 11px !important;
  }
  
  /* Team cards — smaller aspect ratio but PRESERVE padding-bottom trick */
  .mil-team-card {
    padding-bottom: 110% !important;
  }
  
  /* Accordions - compact */
  .mil-accordion-head {
    font-size: 12px !important;
    padding: 15px !important;
  }
  
  /* Lists - reduce margin */
  ul, ol {
    margin-left: 15px !important;
  }
  li {
    margin-bottom: 6px !important;
  }
  
  /* Sections - tighter spacing */
  section {
    margin: 0 !important;
  }
  
  /* Banner animation frame - constrain to viewport */
  .mil-animation-frame {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  /* Navbar handled by 768px rule above */
}

/* ===================================================================
   SERVICES PAGE — Prevent decorative lines from creating extra space
=================================================================== */
#services > .mi-invert-fix > .container > .row > .col-lg-5 {
  position: relative;
}
#services .mil-lines-place {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ===================================================================
   OTHER SERVICES CARDS — Equal height on individual service pages
=================================================================== */
.mil-service-card-lg.mil-other-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mil-service-card-lg.mil-other-card .mil-link {
  margin-top: auto;
}
