/* ABSL-3 Facility - Custom Styles */
/* Compatible with modern browsers, Bootstrap 5 */

:root {
  /* Core palette */
  --primary: #123a68; /* deep containment blue */
  --primary-dark: #0a2340;
  --primary-light: #3f6ea8;

  --secondary: #0e8a80; /* lab teal */
  --secondary-dark: #075e57;
  --secondary-light: #4fc4b8;

  --accent-amber: #e2952e; /* safety amber */
  --accent-amber-dark: #b9740f;
  --accent-coral: #d9634a; /* alert coral */
  --accent-violet: #6a5aa8; /* research violet */
  --accent-violet-dark: #7f5bff;

  --dark: #101a30;
  --text: #1e2733;
  --text-muted: #5c6b7a;

  /* Distinct, actually-colored backgrounds (no white/grey) */
  --bg-page: #dbe7f9; /* soft blue page wash */
  --bg-section: #e4f7f2; /* teal-tinted section */
  --bg-dark: #0d1b30; /* deep navy section */

  /* Bright card background gradients */
  --card-blue: linear-gradient(145deg, #4d7fc4 0%, #123a68 100%);
  --card-teal: linear-gradient(145deg, #22b8a8 0%, #076b62 100%);
  --card-violet: linear-gradient(145deg, #8c72d6 0%, #4a3a86 100%);
  --card-amber: linear-gradient(145deg, #c76e15 0%, #f2ab3f 100%);
  --card-coral: linear-gradient(145deg, #6186ec 0%, #2a80b8 100%);
  --card-sky: linear-gradient(145deg, #3fb8e0 0%, #1568a0 100%);

  --border: #dde4ec;
  --border-soft: #e8edf3;

  --shadow-sm: 0 2px 10px rgba(16, 26, 48, 0.06);
  --shadow-sm2: 0 2px 10px rgba(16, 26, 48, 0.685);
  --shadow: 0 6px 24px rgba(16, 26, 48, 0.1);
  --shadow-hover: 0 12px 34px rgba(16, 26, 48, 0.18);
  --shadow-teal: 0 10px 28px rgba(14, 138, 128, 0.22);
  --shadow-violet: 0 10px 28px rgba(106, 90, 168, 0.22);
  --shadow-amber: 0 10px 28px rgba(226, 149, 46, 0.24);
  --shadow-coral: 0 10px 28px rgba(217, 99, 74, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  max-width: 85%;
}
body {
  font-family:
    "Bricolage Grotesque",
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: linear-gradient(180deg, #dbe7f9 0%, #eaf3fb 35%, #e4f7f2 100%);
  overflow-x: hidden;
}

/* ========== Top Info Bar ========== */
.top-bar {
  background: var(--dark);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--secondary-light);
}

/* ========== Navbar ========== */
.navbar-absl {
  background: linear-gradient(45deg, #ffffff, #ecd56f);
  box-shadow:
    var(--shadow-sm2),
    inset 0 6px 12px -6px rgba(18, 58, 104, 0.3);
  padding: 0.6rem 0;
  transition: all 0.3s ease;
}

.navbar-absl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #0d2948;
  background-size: 400%;
  box-shadow:
    0 0 10px 0px #0d2948,
    0 0 20px 6px #0d2948,
    0 0 35px #0d2948;
  pointer-events: none;
}

.navbar-absl.scrolled {
  padding: 0.3rem 0;
  box-shadow:
    var(--shadow),
    inset 0 6px 12px -6px rgba(18, 58, 104, 0.3);
  background: linear-gradient(45deg, #ffffff, #ffe25e);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  white-space: normal;
  margin-right: 1.5rem;
}

.navbar-brand .brand-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.navbar-brand .brand-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 320px;
}

.navbar-nav .nav-link {
  color: var(--dark) !important;
  font-weight: bold;
  font-size: 0.92rem;
  padding: 0.5rem 0.6rem !important;
  border-radius: 4px;
  transition: all 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #003608 !important;
  background: rgb(14 138 128 / 35%);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ========== Hero Section ========== */
.hero-section {
  background: linear-gradient(
    120deg,
    var(--primary-dark) 0%,
    var(--primary) 45%,
    var(--secondary-dark) 100%
  );
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0px;
  background: #fff3bc;
  background-size: 400%;
  box-shadow:
    0 0 10px 0px #fff3bc,
    0 0 20px 6px #fff3bc,
    0 0 35px #fff3bc;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
}

/* Two-column hero layout */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
  min-height: 260px;
}

.hero-image-wrap {
  flex: 0 0 auto;
  width: 420px;
  position: relative;
  z-index: 1;
}

.hero-crf-img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  display: block;
  /* border-top: 2px dashed #f2e6b1; */
  border-radius: 190px 190px 0px 0px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.hero-address {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.hero-buttons .btn {
  margin: 0.35rem 0.5rem 0.35rem 0;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.95rem;
}

.btn-hero-primary {
  background: #fff;
  color: var(--primary);
  border: none;
}

.btn-hero-primary:hover {
  background: #cfe2fa;
  color: var(--primary-dark);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ========== Quote Banner ========== */
.quote-banner {
  background: linear-gradient(
    100deg,
    var(--secondary-dark) 0%,
    var(--accent-violet-dark) 100%
  );
  color: #fff;
  padding: 1.75rem 0;
  text-align: center;
}

.quote-banner blockquote {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  border: none;
  padding: 0;
}

.quote-banner blockquote::before {
  content: '"';
  font-size: 2.5rem;
  opacity: 0.4;
  vertical-align: -0.4rem;
  margin-right: 0.25rem;
}

.quote-banner blockquote::after {
  content: '"';
  font-size: 2.5rem;
  opacity: 0.4;
  vertical-align: -1.3rem;
  margin-left: 0.25rem;
}

/* ========== Section Common ========== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-section);
}

/* Distinct colored washes per content section, applied via
   an additional class alongside .section (e.g. class="section section-blue") */
.section-blue {
  background: #cfe2fa;
}
.section-teal {
  background: #cdf1e9;
}
.section-violet {
  background: #e2dbf7;
}
.section-amber {
  background: #fbe8c9;
}
.section-dark {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.9);
}
.section-dark .section-title {
  color: #fff;
}
.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 55px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--secondary) 0%,
    var(--accent-amber) 100%
  );
  margin-top: 0.4rem;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 700px;
}

/* ========== About ========== */
.about-text p {
  margin-bottom: 1.1rem;
  color: #37474f;
  font-size: 1.02rem;
}

/* ========== Mission ========== */
.mission-card {
  background: linear-gradient(
    135deg,
    var(--accent-violet) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-violet);
}

.mission-card .icon-wrap {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
}

.mission-card p {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.65;
  margin: 0;
}

/* ========== Facility Layout ========== */
.layout-desc {
  color: #37474f;
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}

.layout-desc p {
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--card-teal);
  border: none;
  border-radius: 10px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition: all 0.25s ease;
  height: 100%;
  box-shadow: var(--shadow-teal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-card .icon-box {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
  font-size: 1.45rem;
}

.feature-card h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}

.research-item,
.equip-item,
.service-card,
.gallery-item {
  cursor: pointer;
}

.research-item:focus-visible,
.equip-item:focus-visible,
.service-card:focus-visible,
.gallery-item:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ========== Research Areas ========== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.research-item {
  background: var(--card-violet);
  border-left: 4px solid #2d2153;
  padding: 0.9rem 1.1rem;
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-violet);
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.2s;
}

.research-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}

.research-item i {
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ========== Equipment ========== */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.equip-item {
  background: var(--card-sky);
  border: none;
  border-radius: 8px;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.equip-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.equip-item .eq-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.equip-item span {
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
}

/* ========== Services ========== */
.service-card {
  background: var(--card-coral);
  border-radius: 12px;
  padding: 1.75rem 1.4rem;
  text-align: center;
  height: 100%;
  border: none;
  transition: all 0.25s;
  box-shadow: var(--shadow-coral);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-card .svc-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.5rem;
}

.service-card h5 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0;
}

/* ========== Safety ========== */
.safety-list {
  list-style: none;
  padding: 0;
}

.safety-list li {
  background: var(--card-amber);
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-amber);
}

.safety-list li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.safety-list .safe-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.safety-list span {
  font-weight: 500;
  color: #fff;
}

/* ========== Safety Accordion ========== */
.safety-accordion .accordion-item {
  background: var(--card-amber);
  border: none;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-amber);
}

.safety-accordion .accordion-button {
  background: transparent;
  color: #fff;
  font-weight: 500;
  padding: 1rem 1.25rem;
  gap: 1rem;
  box-shadow: none;
}

.safety-accordion .accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
}

.safety-accordion .accordion-button:focus {
  box-shadow: none;
  outline: 2px solid rgba(255, 255, 255, 0.6);
}

.safety-accordion .accordion-button::after {
  filter: brightness(0) invert(1);
}

.safety-accordion .accordion-button .safe-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.safety-accordion .accordion-body {
  background: rgba(255, 255, 255, 0.94);
  color: #37474f;
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 1.1rem 1.25rem 1.25rem 4.15rem;
}

/* ========== Downloads ========== */
.download-card {
  background: var(--card-teal);
  border: none;
  border-radius: 10px;
  padding: 1.3rem 1.2rem;
  text-align: center;
  height: 100%;
  transition: all 0.25s;
  box-shadow: var(--shadow-teal);
}

.download-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.download-card .dl-icon {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.download-card h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.85rem;
}

.download-card .btn {
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}

.download-card .btn:hover,
.download-card .btn:focus {
  background: #fff;
  border-color: #fff;
  color: #000;
}

/* ========== News ========== */
.news-item {
  background: var(--card-blue);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid #0a2340;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.2s;
}

.news-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.news-item .news-icon {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0.15rem;
}

.news-item h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.news-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ========== Gallery ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
}

.gallery-item {
  background: var(--card-violet);
  border-radius: 10px;
  overflow: hidden;
  border: none;
  transition: all 0.25s;
  text-align: center;
  box-shadow: var(--shadow-violet);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-thumb {
  height: 140px;
  background-color: rgba(255, 255, 255, 0.15);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
}

.gallery-item h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  padding: 0.85rem 0.75rem;
  margin: 0;
}

/* ========== Contact ========== */
.contact-card {
  background: var(--card-blue);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-card h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.contact-info-item .ci-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.contact-info-item span,
.contact-info-item a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.contact-info-item a:hover {
  color: var(--secondary-light);
}

.incharge-photo-wrap {
  text-align: center;
  margin-bottom: 1.4rem;
}

.incharge-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

/* ========== Placeholder / sample pages ========== */
.dev-banner {
  background: var(--card-amber);
  color: #fff;
  border-radius: 10px;
  padding: 0.9rem 1.25rem;
  font-weight: 500;
  box-shadow: var(--shadow-amber);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.placeholder-card {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

/* ========== Footer ========== */
.footer {
  background: linear-gradient(
    160deg,
    var(--bg-dark) 0%,
    var(--primary-dark) 100%
  );
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
}

.footer h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.footer a:hover {
  color: var(--secondary-light);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== Utilities ========== */
.text-accent {
  color: var(--secondary-dark) !important;
}

.bg-soft {
  background: #cfe2fa;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .navbar-brand .brand-sub {
    max-width: 200px;
    font-size: 0.68rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-tagline {
    font-size: 1.05rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 3.2rem 0 2.5rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .section {
    padding: 3rem 0;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .feature-grid,
  .research-grid,
  .equip-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-inner {
    min-height: 200px;
    flex-direction: column;
    gap: 2rem;
  }
  .hero-image-wrap {
    width: 100%;
  }
  .hero-crf-img {
    height: 220px;
  }
}

@media (max-width: 575.98px) {
  .feature-grid,
  .research-grid,
  .equip-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .navbar-brand .brand-title {
    font-size: 1.15rem;
  }
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.4rem 0;
  }
}

/*Marching Ants :Start */
.marching-ants-box {
  display: inline-block;
  padding: 4px; /* The thickness of your dashed border */
  background-image: linear-gradient(90deg, #fff 50%, transparent 50%), 
                    linear-gradient(90deg, #fff 50%, transparent 50%), 
                    linear-gradient(0deg, #fff 50%, transparent 50%), 
                    linear-gradient(0deg, #fff 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 15px 4px, 15px 4px, 4px 15px, 4px 15px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  animation: marchingAnts 0.4s linear infinite;
}

.marching-ants-box img {
  display: block;
  max-width: 100%;
}

/* Moves the background positions to simulate crawling dashes */
@keyframes marchingAnts {
  0% {
    background-position: 0 0,  0 100%,  0 0,  100% 0;
  }
  100% {
    background-position: 15px 0, -15px 100%, 0 -15px, 100% 15px;
  }
}

/*Marching Ants :End*/
