
/* Responsive styles for menu*/

  @media (max-width: 990px) {
    .menu_nav {
      background-color: #fff;
      width:100%;
      height:100%;
      padding:30px;
      transition: left 0.7s ease-in-out;
    }
    .nav-item{
      list-style: none;
    }
    .toggler-mob {
      position: absolute;
      top: 5px;
      left: 5px;
    }
    #navbarCollapse{
      width: 100vw;
      height: 100vh;
      transition: .5s ease-in-out;transform: rotate(0deg);
    }
    .dropdown-menu > li:active{ background-color: #f1f1f1 }
    .dropdown-menu > li:active > .submenu{ display: block; }
    .menu_nav ul  {
      width: 100%;
      border-bottom: 1px solid #eee;
    }
      /* === Offcanvas Background === */
  .offcanvas-body {
    background: linear-gradient(to bottom, #000033, #ffffff);
    padding: 1.5rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: inset 0 1px 0 #dee2e6;
  }

  /* === Search Bar Wrapper === */
  .search-wrapper {
    background-color: #ffffff;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 0.25rem 1rem;
  }

  /* === Search Input Field === */
  .search-wrapper input[type="search"] {
    border: none;
    background: transparent;
    box-shadow: none;
  }

  /* === Submit Button === */
  .search-wrapper .btn {
    background-color: #0d6efd;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* === Section Headings === */
  .menu-content h2, .menu-content legend {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #0d6efd;
    border-left: 4px solid #0d6efd;
    padding-left: 0.5rem;
  }

  /* === Dropdown Styling === */
  .menu-content select.form-select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background-color: #f1f3f5;
    font-size: 0.95rem;
    color: #212529;
    margin-bottom: 1rem;
    transition: all 0.2s ease-in-out;
  }

  /* === Focus Style === */
  .menu-content select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.2);
    background-color: #fff;
  }

  .menu-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-top: 1rem;
  }
  .region-content {
      padding: 1rem;
    }

    .search-form {
      flex-direction: column;
      align-items: stretch;
    }

    .search-form input[type="search"],
    .search-form input[type="submit"] {
      width: 100%;
    }

    h2 {
      font-size: 1.5rem;
    }

    .search-results li {
      padding: 1rem;
    }
     .feedback-button {
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      writing-mode: horizontal-tb;
      text-align: center;
      border-radius: 0;
      padding: 12px;
  }
    .history-container {
      padding: 2rem 1rem;
    }
  .slider-desc {
    text-align: justify;
    line-height: 1.6;
  }

  .slider-desc,
  .carousel-content p{
    text-align: justify;
    word-break: break-word;
    overflow-wrap: break-word;
    line-break: anywhere;
    hyphens: auto;
    line-height: 1.8;
    left: 0;
  }
  .banner-overlay-wrapper {
    padding-bottom: 50px; /* More padding to prevent overlap */
  }

  .update-section-wrapper {
    position: static !important;
    transform: none !important;
    margin-top: -50px;
    width: 100%;
  }
  .carousel-bg {
    height: 750px;
  }
  .mobile-app{
    max-width: 250px;
    margin-left:60px;
  }
  .fixed-top {
    z-index: 999;
  }
  .lang-block {
    z-index: 1000;
  }
  .ikm-widget-panel{
    display: flex;
  }
 .top-bar{
   display: none !important;
 }
 .ikm-widget{
   z-index: 999999 !important;
 }
  .user-logged-in .ikm-widget{
    top: -15px;
    z-index: 999999 !important;
  }
  body.user-logged-in .navbar {
    display: none !important;
  }
}
  @media (max-width: 1102px) {
   
  }
  @media (min-width: 992px) {
    /* Styles for desktop and up */
    .history-row{
      position:relative;
    }
    .history-right-container{
      position: absolute;
      right: 80px;
      top: 10px;
      bottom: 10px;
    }
    .menu_nav{
      display: flex;
      align-items: center;
      list-style: none;
      justify-content: right;
      padding: 40px 0px;
      font-size: 16px;
      font-family: 'Noto Sans Malayalam', sans-serif;
    }
    .dropdown-menu li{ position: relative; 	}
    .nav-item .submenu{ 
      display: none;
      position: absolute;
      left:100%; top:-7px;
    }
    .nav-item .submenu-left{ 
      right:100%; left:auto;
    }
    .dropdown-menu > li:hover{ background-color: #f1f1f1 }
    .dropdown-menu > li:hover > .submenu{ display: block; }
    .carousel-content{
      position:absolute;
      max-width: 50%;
      left:5%;
    }
    .banner-overlay-wrapper {
      padding-bottom: 120px; /* More padding to prevent overlap */
    }
    .carousel-bg {
        height: 500px;
    }
    .mobile-app{
      max-width: 250px;
      margin-left:25px;
    }
    .mobile-icon{
      border-radius: 337px;
      background: rgba(123, 102, 255, 0.14);
      margin-left: -50px;
      margin-right: 50px;
      
    }
    .ikm-widget {
      margin-left:-31px;
     }
     .user-logged-in .ikm-widget{
        top: -1.5px;
        z-index: 1;
      }
      .page-node-type-article .region-content,
      .page-node-type-updates .region-content
      {
        width:100%;
      }
      .region-sidebar-first{
        width: 50%;
        margin-top:40px;
      }
      .user-logged-in .region-sidebar-first{
        top: 340px;
      }
      .page-node-type-article #main-content-section,
      .page-node-type-updates #main-content-section
      {
        display:flex;
      }
  }
  /* Responsive tweaks */
  @media screen and (max-width: 480px) {
  .user-login-form {
    padding: 1.5rem;
    margin: 4vh 1rem;
  }

  .user-login-form input {
    font-size: 0.95rem;
  }
 }
 @media (min-width: 768px) {
  .w-md-auto {
    width: auto !important;
  }
}

  