@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* Header title container */
.md-header__title {
  display: inline-flex !important;
  align-items: baseline !important;
  white-space: nowrap !important;

  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;          /* BIG: Chandhar Research Labs */
  letter-spacing: 0.6px;
  font-weight: 400;
  color: #ffffff;
}

/* Smaller "Pvt Ltd" */
.md-header__title small {
  font-size: 0.85rem;         /* SMALL */
  letter-spacing: 0.3px;
  opacity: 1;
  margin-left: 0.05rem;
}


/* Force center footer content in Material MkDocs */
.md-footer__inner {
  display: flex !important;
  justify-content: center !important;
}

.md-footer-meta {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
}

.md-footer-meta__inner {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
}

.md-footer-copyright {
  text-align: center !important;
}
/* ===== Header Logo + Company Name Improvements ===== */

/* Increase header logo size */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 80px;   /* try 36–42px */
  width: auto;
}

/*Header background color */
.md-header {
  background-color: #004aad !important;
}
/* Navigation tabs background */
.md-tabs {
  background-color: #004aad !important;
}

.md-header,
.md-tabs {
  color: #ffffff;
}


/* ===== Move company name closer to logo ===== */

/* Reduce gap between logo and title */
.md-header__inner {
  gap: 0.4rem !important;   /* default is larger */
}

.md-header__title {
  margin-left: -28px;
}


/* Optional: tighten logo button padding */
.md-header__button.md-logo {
  padding-right: 0.2rem !important;
}


/* ===== MOBILE HEADER FIX ===== */
@media (max-width: 768px) {

  /* Reduce logo size on mobile */
  .md-header__button.md-logo img,
  .md-header__button.md-logo svg {
    height: 42px !important;   /* desktop can stay 80px */
  }

  /* Reduce company name size on mobile */
  .md-header__title {
    font-size: 1.15rem !important;
    letter-spacing: 0.4px;
    margin-left: -6px !important;
    white-space: nowrap;
  }

  /* Smaller Pvt Ltd on mobile */
  .md-header__title small {
    font-size: 0.7rem !important;
    margin-left: 0.25rem;
  }

  /* Tighten logo + title spacing */
  .md-header__inner {
    gap: 0.25rem !important;
  }

  .md-header__button.md-logo {
    padding-right: 0 !important;
    margin-right: -2px !important;
  }
}

/* ===============================
   FIX HEADER COLOR MISMATCH
   =============================== */

/* Desktop header */
.md-header {
  background-color: #004aad !important;
}

/* Tabs (desktop) */
.md-tabs {
  background-color: #004aad !important;
}

/* Mobile top header */
@media (max-width: 768px) {
  .md-header {
    background-color: #004aad !important;
  }

  /* Mobile drawer header (logo + title area) */
  .md-nav__title {
    background-color: #004aad !important;
    color: #ffffff !important;
  }

  /* Ensure title text is white */
  .md-nav__title,
  .md-header__title {
    color: #ffffff !important;
  }
}


/*
.md-typeset .admonition.info {
  border-left-color: #004aad;
}

.md-typeset .admonition.info > .admonition-title {
  background-color: rgba(0, 74, 173, 0.1);
  color: #004aad;
}
*/

/* Table header */
/* Table base */
.md-typeset table {
  border-collapse: collapse;
  width: 100%;
}

/* Header */
.md-typeset table thead th {
  background-color: #004aad;
  color: #ffffff;
  padding: 10px;
}

/* Body cells */
.md-typeset table td {
  padding: 10px;
  border: 1px solid #e0e0e0;
}

/* Alternate rows */
.md-typeset table tbody tr:nth-child(even) {
  background-color: #f2f6ff;
}

/* Hover effect */
.md-typeset table tbody tr:hover {
  background-color: #e6eeff;
}

.features {
  color: #004aad;
  
}

.specs {
  color: #cc007e;
  border-bottom: 2px solid #cc007e;
}

.warranty {
  color: #2e7d32;
  border-bottom: 2px solid #2e7d32;
}
.attr-test {
  color: red !important;
  font-weight: bold;
}
/*<h2 class="features">Features</h2>
<h2 class="specs">Specifications</h2>
<h2 class="warranty">Warranty</h2> */
/* Page title (H1) */
.md-typeset h1 {
  color: #004aad;          /* your brand blue */
}

/* Main section headings (H2) */
.md-typeset h2 {
  color: #004aad;
  
  padding-bottom: 4px;
}

/* Sub‑section headings (H3) */
.md-typeset h3 {
  color: #004aad;          /* accent colour */
}

/* ===============================
   Align all box (admonition) colors
   with header background color
   =============================== */

/* INFO boxes */
.md-typeset .admonition.info {
  border-left-color: #004aad;
}
.md-typeset .admonition.info > .admonition-title {
  background-color: rgba(0, 74, 173, 0.12);
  color: #004aad;
}

/* SUCCESS boxes */
.md-typeset .admonition.success {
  border-left-color: #004aad;
}
.md-typeset .admonition.success > .admonition-title {
  background-color: rgba(0, 74, 173, 0.12);
  color: #004aad;
}

/* NOTE boxes */
.md-typeset .admonition.note {
  border-left-color: #004aad;
}
.md-typeset .admonition.note > .admonition-title {
  background-color: rgba(0, 74, 173, 0.12);
  color: #004aad;
}

/* WARNING / ATTENTION boxes (keep readable) */
.md-typeset .admonition.warning,
.md-typeset .admonition.attention {
  border-left-color: #004aad;
}
.md-typeset .admonition.warning > .admonition-title,
.md-typeset .admonition.attention > .admonition-title {
  background-color: rgba(0, 74, 173, 0.12);
  color: #004aad;
}

/* ===============================
   Align border / outline color
   with header background color
   =============================== */

/* Admonition (box) outer border */
.md-typeset .admonition {
  border-color: #004aad !important;
}

/* Left accent border (Material style) */
.md-typeset .admonition {
  border-left-color: #004aad !important;
}
/* ===============================
   FIX TABLE LEFT BORDER COLOR
   =============================== */

/* Table outer border */
.md-typeset table {
  border: 1px solid #004aad;
}

/* Header cells */
.md-typeset table th {
  border: 1px solid #004aad;
}

/* Body cells */
.md-typeset table td {
  border: 1px solid #004aad;
}

/* FORCE LEFT BORDER (important) */
.md-typeset table th:first-child,
.md-typeset table td:first-child {
  border-left: 1px solid #004aad !important;
}


/* Remove admonition icon ( ! inside circle ) */
.md-typeset .admonition-title::before {
  display: none !important;
}




.shorts-container {
  position: relative;
  width: 100%;
  max-width: 360px;     /* phone-like width */
  aspect-ratio: 9 / 16;
  margin: 1rem auto;   /* center it */
}

.shorts-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px; /* optional, looks modern */
}

/* Book cover: left aligned and larger */
.md-typeset img[alt="LTE Hands-On"] {
  width: 500px;          /* increase size (try 340 / 380 / 420) */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;     /* left aligned (no auto) */
}

.md-typeset img[alt="5G NR Hands-On"] {
  width: 500px;          /* increase size (try 340 / 380 / 420) */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;     /* left aligned (no auto) */
}

/* =========================
   VIDEO GALLERY GRID (2‑PER‑ROW)
   ========================= */


.md-typeset .video-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2 columns */
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Each video card */
.md-typeset .video-gallery .video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: none;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Iframe fills card */
.md-typeset .video-gallery .video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Hover effect */
.md-typeset .video-gallery .video-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

/* Mobile: 1 column */
@media (max-width: 768px) {
  .md-typeset .video-gallery {
    grid-template-columns: 1fr;
  }
}

/* =========================
   REUSABLE 2‑COLUMN GALLERY
   ========================= */

/* Only affect images with .gallery */
.md-typeset img.gallery {
  float: left;
  width: 48%;
  margin: 0.75rem 1%;

  height: 320px;
  object-fit: cover;
  border-radius: 12px;

  /* Clean look */
  filter: none !important;
  mix-blend-mode: normal !important;
  backdrop-filter: none !important;
  opacity: 1 !important;

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.md-typeset img.gallery:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

/* ✅ Clear floats when a horizontal rule follows */
.md-typeset hr {
  clear: both;
}

/* Mobile: 1 image per row */
@media (max-width: 768px) {
  .md-typeset img.gallery {
    float: none;
    width: 100%;
    margin: 1rem 0;
    height: 240px;
  }
}






/* =========================
   PRODUCT DEMO – GRID
   ========================= */

.md-typeset img[alt="Demo"] {
  float: left;
  width: 28%;              /* 3 per row (change to 48% for 2 per row) */
  margin: 0.75rem 1%;
  height: 180px;
  object-fit: cover;      /* uniform card size */
  border-radius: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.md-typeset img[alt="Demo"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

/* Clear floats */
.md-typeset hr {
  clear: both;
}

/* Mobile: stack */
@media (max-width: 768px) {
  .md-typeset img[alt="Demo"] {
    float: none;
    width: 100%;
    height: 240px;
    margin: 1rem 0;
  }
}

/* =========================
   FULL VIEW OVERLAY
   ========================= */

.md-typeset img.demo-fullscreen {
  position: fixed !important;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain;
  background: #000;
  z-index: 10000;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1rem;
}

body.demo-fullscreen-open {
  overflow: hidden;
}

/* =========================
   FULLSCREEN OVERLAY
   ========================= */

.md-typeset img.demo-fullscreen {
  position: fixed !important;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain;        /* show full image */
  background: #000;
  z-index: 10000;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1rem;

  /* Subtle motion effect */
  animation: demoPan 10s ease-in-out infinite alternate;
}

/* Prevent background scroll */
body.demo-fullscreen-open {
  overflow: hidden;
}

/* Close button (X) */
.demo-close-btn {
  position: fixed;
  top: 16px;
  right: 20px;
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.demo-close-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

/* =========================
   SUBTLE MOVEMENT ANIMATION
   ========================= */
@keyframes demoPan {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-10px, -6px); }
  100% { transform: translate(10px, 6px); }
}

/* =========================
   FULLSCREEN OVERLAY
   ========================= */

.md-typeset img.demo-fullscreen {
  position: fixed !important;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain;
  background: #000;
  z-index: 10000;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1rem;

  /* Subtle motion */
  animation: demoPan 10s ease-in-out infinite alternate;
}

/* Lock background scroll */
body.demo-fullscreen-open {
  overflow: hidden;
}

/* Close (X) */
.demo-close-btn {
  position: fixed;
  top: 16px;
  right: 20px;
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-close-btn:hover { background: rgba(255,255,255,0.2); }

/* Prev / Next buttons */
.demo-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0,0,0,0.5);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.demo-nav-btn:hover { background: rgba(255,255,255,0.2); }

.demo-prev { left: 16px; }
.demo-next { right: 16px; }

/* Subtle motion */
@keyframes demoPan {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-10px, -6px); }
  100% { transform: translate(10px, 6px); }
}


/* =========================
   FULLSCREEN CAPTION
   ========================= */

.demo-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.4;
  z-index: 10002;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}


/* Mobile drawer background */
[data-md-color-scheme] .md-nav--primary {
  background-color: #ffffff !important;
}

/* Drawer links */
[data-md-color-scheme] .md-nav__item a {
  color: #000000 !important;
}


/* =========================================
   OVERRIDE MATERIAL COLOR VARIABLES (FINAL)
   ========================================= */

:root {
  --md-primary-fg-color: #004aad;
  --md-primary-fg-color--dark: #004aad;
  --md-primary-fg-color--light: #004aad;

  --md-primary-bg-color: #004aad;
  --md-primary-bg-color--dark: #004aad;
}

/* Apply to all schemes (mobile + desktop) */
[data-md-color-scheme] {
  --md-primary-fg-color: #004aad;
  --md-primary-fg-color--dark: #004aad;
  --md-primary-fg-color--light: #004aad;

  --md-primary-bg-color: #004aad;
  --md-primary-bg-color--dark: #004aad;
}
