@font-face {
  font-family: "General sans";
  src: url('../GeneralSans_Complete/GeneralSans_Complete/Fonts/TTF/GeneralSans-Variable.ttf') format('woff2');
   font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: 'rubik';
  src: url('../fonts/Rubik-SemiBold.woff2') format('woff2');
   font-display: swap;
}
@font-face {
  font-family: 'Dm sans semiBold';
  src: url('../fonts/DMSans-SemiBold.woff2') format('woff2');
   font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-Bold.woff2') format('woff2');
   font-display: swap;
}
@font-face {
  font-family: 'karla';
  src: url('../fonts/Karla-VariableFont_wght.woff2') format('woff2');
  font-weight: 500 600;
   font-display: swap;
}
@font-face {
  font-family: "Noto sans regular";
  src: url('../fonts/NotoSansSinhala_SemiCondensed-Regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: "Noto sans semiMedium";
  src: url('../fonts/NotoSansSinhala_SemiCondensed-Medium.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: "Noto sans bold";
  src: url('../fonts/NotoSansSinhala_SemiCondensed-Bold.woff2') format('woff2');
  font-display: swap;
}
    body {
      font-family: "Karla", "sans-serif";
      font-weight: 500;
    }

.topic{
  display: flex;
    align-items: center;
    color:hsl(192, 4%, 22%);
    font-weight: 600;
    /* letter-spacing: -0.2px; */
    font-size: 19px;
    font-family: "rubik",sans-serif,"Noto sans bold";
    padding: 17px 0px 6px 8px;
}
.info-en{
  line-height: 25px;
  overflow: hidden;
}
.info-si{
  line-height: 25px;
  overflow: hidden;
}
.name-div-en{
      font-family: "General sans",system-ui;
    font-size: 14px;
    font-weight: 600;
    color: rgb(49, 49, 49);
    margin-top: -4px;

    }
    .name-div-si{
      font-family: "Noto sans bold";
    font-size: 14px;
    color: rgb(49, 49, 49);
    margin-top: -2px;

    }
.location-name-en,.details-div-en{
  font-family: "General sans",system-ui;
  font-size: 14px;

}
.location-name-si,.details-div-si{
  font-family: "Noto sans semiMedium";
  font-size: 14px;

}
.location-name-en,.details-div-en,.name-div-en{
  overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.location-name-si,.details-div-si,.name-div-si{
  overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
    nav{

      font-family: 'Karla',system-ui;
    font-weight: 500;
    font-size: 13px;
    }

    .nav-link{
      padding-left:5px;
    }



 .c_no{
  font-family: system-ui;
  font-size: 14px;
 }
 .c-icon-img {
    width: 20px;
    margin-top: -1px;
    height: auto;
    padding-right: 5px;
}
.info-section {
    display: grid;
    border-top:1px solid #afafaf;
    padding: 10px;
    grid-template-columns: 120px 1fr;
    cursor: pointer;

}
    .image-left {
      width: 100px;
      height:100px;
      margin-right: 20px;
      background-color: rgb(221, 221, 221);
      /*box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.1);*/
    }
    .info-en, .info-si {
      flex: 1;
    }
    .no-content-msg {
      color: red;
      font-size: 18px;
      text-align: center;
    }

    select {
      padding: 5px;
      margin-bottom: 20px;
    }
    .pagination {
      margin-top: 45px;
      text-align: center;
      margin-left: 12px;
    }

    i{
  color: rgb(0, 39, 112);
}
#spinner-main{
 
      display: none; 
      position: absolute; 
      width: 100%;
      height: 100%;;
      justify-content: center;
      margin-top: 117px;
}
.homeText{
 
  padding-top: 9px; 
  font-weight: 500;
   padding-left: 8px; 
   font-size: 12px;
}
.nav-btn-one{
    border: solid 2px yellow;
    height: 32px;
    margin-top: 4px;
    margin-left: 5px;
    border-radius: 4px;
    color: yellow;
    background: transparent;
    min-width: 74px;
    font-size: 13px;
    font-family:"karla", "Noto sans regular";
}
.nav-btn-two{
border: solid 2px #cece00;
    height: 31px;
    margin-top: 3px;
    margin-left: 18px;
    border-radius: 5px;
    color: yellow;
    background: transparent;
    min-width: 73px;
    font-size: 13px;
    font-family: "karla", "Noto sans regular";


}
.nav-item a {
  padding-top: 11px;
  text-decoration: none;
  font-family: "karla", system-ui;
  font-size: 13px;
  margin-right: 4px;
}
  .nav-item.dropdown {
  list-style: none; /* Removes the marker */
}
/* For WebKit browsers */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #a5a5a5; /* Scroll thumb color */
  border-radius: 1px;
}

::-webkit-scrollbar-track {
  background-color: #f0f0f0; /* Scroll track color */
}

.nav-link-sidebar{
  border-top: solid 1px rgb(204, 204, 204);
  border-bottom: none;
  color: rgb(34, 34, 34);
  font-size: 11px;
  display: flex;
  align-items: center;
padding: 10px 9px 10px 9px;
margin-left: 11px;
margin-right: 11px;
letter-spacing: 0.4px;
height: 38px;

}
.nav-link[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg); /* Rotates the icon downwards */
}
/* Override active styles for nav-pills links */

.nav-link {
    color:rgb(31, 31, 31); /* Set default text color */
    background-color: transparent; /* Remove background color */
    font-size: 11px;
    
    
}
.link-en{
  font-family: "Dm sans semiBold",system-ui;
  /* font-weight: 600; */
}

.link-si{
  font-family: "Noto sans semiMedium";
  font-weight: 500;
  font-size: 12px;
}
 
.nav-pills .show > .nav-link {
    color:  rgb(27, 27, 27); /* Black text for active and hover */
    background-color: transparent; /* No background color */
    text-decoration: none; /* Remove underline on hover */
    padding-left: 9px !important;
    margin: 0px 6px 0px 6px !important;
    transition: 0.2s ease;
}

.sub-link,
.sub-link:hover,
.sub-link.active {
  color: rgb(31, 31, 31) !important; /* Original text color */
  background-color: transparent !important; /* Original background color */
}

.height-x{
  height: 47px;
}

.nav-link.active {
    color: var(--bs-nav-pills-link-active-color) !important;
    background-color: var(--bs-nav-pills-link-active-bg) !important;
}
  .accordion {

  --bs-accordion-bg:none; /* Light gray background */
  --bs-accordion-border-color: none; /* Border color */
 --bs-accordion-btn-color: white;
 --bs-accordion-btn-focus-box-shadow:none;
 --bs-accordion-body-padding-x:3px;
}
.main-span{
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  line-height: 17px;
}
/* .icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: -3px;
    background-color:transparent;
    padding: 0px;
    border-radius: 4px;
    
} */

.offcanvas.custom-width {
    width: 300px; /* Set your desired width */
  }
  .main-section-two{
    width: 95%;
  }
  #content{
    min-height: 218px;
  }
  .content-section{
    max-width: 970px;
    margin-left: 256px;
    margin-top:63px;
  }
  .text-category{
    font-family: "Karla",system-ui;
    /* text-align: center; */
    font-size: 16px;
    margin-left: 15px;
    margin-top: 12px;
    color: #393939;
    margin-bottom: 12px;
    font-weight: 700;
  }
  .b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(82, 82, 82, 0.1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}
.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}
.accordion-button::after {

margin-left: 13px;
}

.chevron-icon {
    transition: transform 0.3s;
    fill: gray;
}

.right-adv{
  width: 195px;
  height: 550px; 
  margin-top: 23px;
  position: sticky;
  top:56px;
}
#toggle-btn{
  height: 28px;
    margin-left: -5px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border:none;
    display: none;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5) !important; /* Dark semi-transparent overlay */
    display: none; /* Hidden by default */
    z-index:1020; /* Below the sidebar */

   
    
}

.right-nav {
    position: fixed;
    top: 53px;
    /* left: -248px; */
    height: 100vh;
    width: 248px;
    background-color: #fff;
    z-index: 1030;
    transition: left 0.45s ease;
}

.right-nav.visible {
    left: 0;
}

.right-nav.visible ~ .overlay {
    display: block; /* Show overlay when sidebar is visible */
}
.right-nav nav {
  display: block;

  overflow-y: auto; /* Enable vertical scrolling */
  overflow-x: hidden; /* Prevent horizontal scrolling */
  height: 93vh; 
  padding: 10px; /* Optional padding for spacing */
  gap: 5px; /* Optional spacing between items */
}


  .category-link.active {
  background-color:transparent !important; 
  color:#393939 !important;/* Change background color when active */
}

.category-link.active a {
  color: white ; /* Change text and icon color when active */
}
.category-link.active i{
  color: white ; /* Change text and icon color when active */
}
.hover-bg-warning:hover {
      background-color: var(--bs-warning) !important;
      color: white !important;
    }
    .hover-bg-primary:hover {
      background-color: rgb(228, 228, 228) !important;
      color:black !important;
    }

    .collapse-menu{
      border-left: solid 3px #cfcf07;
      margin-bottom: 6px;
    }
    .carousal-item{
      object-fit: cover;
    }
     /* Responsive adjustments */

  .av-small {
      position: relative;
      width: 100%;
      overflow: hidden;
    background-color: rgb(219, 219, 219);
      aspect-ratio: 967/400;
    }

    .small-ad {
      display: none; /* Hide all ads initially */
      width: 100%;
      height: 100%;
      transition: opacity 0.5s ease-in-out;
    }
    #languageSwitcher{
      border: none;
      outline: none;
      padding-left: 0px;
      font-family: "karla", system-ui, "Noto Sans Regular";
      padding-top: 8px;
      color: white;
      font-size: 13px;
      padding-right: 1px;
      margin-top: 4px;
    }
    /* Optional: Add border and padding to each ad */
    .small-ad picture {
      border: 2px solid #000;
      padding: 5px;
    }

    /* Show only the active ad */
    .active-ad {
      display: block;
    }
    .pagination button{
      border: 1px solid black;
    padding: 3px 9px;
    margin: 0px 1px;
    border-radius: 2px;
    }
    .footer-container{
      margin-left: 248px;
      background-color:#004346;
    }
    .page-link{
      color: black !important;
    }
    .active>.page-link{
      color: white !important;
      background-color: grey !important;
      border-color:rgb(112, 112, 112) !important;
    }
    .location-name-en,.location-name-si{
      color: #001e57;
    }
 @media(max-width:767px){
  .search-outer{
      margin-top: 6px;
    }
 }
    @media (max-width:835px) {
    .right-nav {
      left: -270px; 
      width: 270px;
    }
    .right-nav nav {
    height: 88vh;

}
    #toggle-btn{
      display: flex;
    }
    .link-en{
      font-family: "Nunito",system-ui, "Noto sans semiMedium";
      /* font-weight: 700; */
    }
    .link-si{
      font-family: "Noto sans semiMedium";
      font-weight: 500;
      font-size: 12px;
    }

    .content-section{
      margin-left: 4px;
    }
    .footer-container{
      margin-left: 0px;
    }

  }
  @media(max-width:1200px){
    .main-section-two{
      width: 100%;

    }
  }
  @media(max-width:685px){
    .right-adv{
      display: none;
    }
  }
    @media(max-width:450px){
      .av-small{
        aspect-ratio: 430/508;
      }
      #spinner-main{
        margin-top: 136px;
      }
      .info-section{
        padding: 8px 0px;
        grid-template-columns: 100px 1fr;

      }
      .image-left{
        height: 88px;
        width: 88px;
      }
      .info-en{
        line-height: 24px;
      }.topic{
        font-size: 16px;
        padding: 14px 0px 4px 8px;
      }.content-section{
        margin-top: 60px;
      }.c_no{
        font-size: 13px;
      }

    }
    @media(max-width:767px){
      #languageSwitcher{
        padding-left: 4px;
      }
    }