/* Styling for consistent appearance */
html,
body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    height: 100%;
    min-height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Sign In START */
.body-signin {
    background-color: #f5f7fb;
}

/* Sign In END */

/* Catalogue START */
.head-h1 {
    font-size: 1.6rem;
    color: #5d34b4;
    font-weight: bold;
}

.head-h3 {
    font-size: 1.2rem;
    color: #666;
}

.card {
    border: none;
}

.card-title {
    font-size: 0.9em;
    color: #5d34b4;
    margin-bottom: 10px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    font-weight: bold;
}

.fs-7 {
    font-size: 10px;
    margin: 6px;
}

.highlight {
    background-color: yellow;
}

.content-wrapper {
    flex: 1;
}

/* for li-a links  */
li a {
    color: inherit;
    text-decoration: none;
}

.text-muted-light {
    color: #969292;
}

/* Catalogue END */

/* onepager */
.fs {
    font-size: 14px;
}

/* onepager */

/* COMMON */
/* Search Button */
.custom-btn {
    border: 1px solid #5d34b4;
    /* Custom outline color */
    background-color: transparent;
    /* Initially no fill */
    color: #5d34b4;
    /* Text color same as outline */
    cursor: pointer;
    transition: all 0.3s ease;
    /* Smooth transition */
}

.custom-btn:hover {
    background-color: #5d34b4;
    /* Fill color on hover */
    color: white;
    /* Text color when hovered */
}

.custom-btn:active {
    background-color: #5d34b4;
    /* Slightly darker fill when clicked */
    border-color: #5d34b4;
    /* Change the outline color when clicked */
    color: white;
    /* Keep the text white */
}

/* Search Button */

footer {
    background-color: #5d34b4;
    color: #fff;
    padding: 10px;
    margin-top: auto;
    width: 100%;
    bottom: 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.875rem;
}

/* Change the background color of the active link to red */
.nav-pills .nav-link.active {
    background-color: #5d34b4;
    /* You can use any color you prefer */
    border-color: #5d34b4;
    /* This changes the border color if needed */
}

/* Optional: Change text color if you want */
.nav-pills .nav-link.active {
    color: white;
    /* Text color when active */
}

/* COMMON */

/* =========================
   MOBILE & TABLET NAV FIX
   ========================= */
@media (max-width: 991px) {
  .navbar-collapse {
    display: block !important;
  }

  .navbar-toggler {
    display: none !important;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  .navbar-nav .nav-item {
    padding: 6px 0;
  }

  .navbar .form-control {
    width: 100%;
  }
}

/* =========================
   MOBILE CONTENT HELPERS
   ========================= */
@media (max-width: 991px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
}

@media (min-width: 992px) {
  .desktop-only {
    display: block !important;
  }
  .mobile-only {
    display: none !important;
  }
}
/* Custom mobile tabs (peach + blue) */
.custom-tabs {
  border-bottom: 1px solid #f1d7c8;
}

.custom-tabs .nav-link {
  color: #2b4cff;
  background: #fff3ec;
  border: 1px solid #ffd9c7;
  margin-right: 6px;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
}

.custom-tabs .nav-link.active {
  background: linear-gradient(135deg, #ffd9c7, #dbe5ff);
  color: #1d2cff;
  border-bottom-color: transparent;
}


/* Responsive content container */
.content-section {
  min-height: calc(100vh - 160px); /* header + footer space */
  display: flex;
  flex-direction: column;
}

/* PDF & video frame wrapper */
.media-frame {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

/* iframe always fills wrapper */
.media-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

/* Desktop */
@media (min-width: 992px) {
  .media-frame {
    height: 520px;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .media-frame {
    height: 420px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .media-frame {
    height: 280px;   /* KEY: reduces empty space */
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1;
}

footer {
  margin-top: auto;
}
.pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.media-frame {
  width: 100%;
  height: 420px;        /* mobile */
  background: #fff;
}

@media (min-width: 992px) {
  .media-frame {
    height: 500px;      /* desktop */
  }
}
