nav{   
    background: #000f88 !important;
}
nav .nav-link{
    font-weight: 500 !important;
    font-size: 1rem !important;    
    color: #fff;
    text-transform: uppercase;
}
.active, .nav-link.hover {
    color: #ffd200 !important;
}
.nav-link:focus, .nav-link:hover{
      color: #ffd200 !important;
}
.logo img{
    height: 100px;
}
.topbar{
    padding:10px 8px
}
.navbar-expand-lg .navbar-nav .dropdown-menu{
    background-color: #000f88;
    border: none !important;
}
.navbar-expand-lg .navbar-nav .dropdown-menu .dropdown-item:focus, .dropdown-item:hover{
    background-color: transparent;
}
.dropdown-item{
    color:#fff;
    text-transform: uppercase;
}
/* Montserrat */
body{
    background-color: #ddd;
    opacity: 0.2;
    background-image: radial-gradient(#c6c7c8 1px, #e5e5f7 1px);
    background-size: 20px 20px;
    opacity: 1;
    overflow: hidden; 
    font-family: 'Montserrat';
    color: #333;
    font-weight: 600;        
    height: 98vh;
    overflow: auto;
}
main{
    background: #fff;
    margin: auto;
    position: relative;
    top: 6%;
    bottom: 2% ;
}
.navbar-expand-lg .navbar-collapse{
    justify-content: center;
}


      main {
        width: 85%;
        margin: auto;
        max-width: 1200px;
      }

   

      .masthead {
         text-align: center;
    padding: 26px 0px 0px 0px;
    border-bottom: 2px solid #ffd200;
      }

      .masthead img {
        max-height: 100px;
      }

      .headline {
    font-family: 'Montserrat';
    font-size: 22px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.23;
    letter-spacing: normal;
    text-align: left;
    color: #000f88;
    text-transform: uppercase;
      margin-bottom: 2%;
    }
      .article {
       margin-bottom: 20px;
    border-bottom: 1px dashed #999;
    padding-bottom: 10px;
    background: #000f88;
    padding: 10px;
      }
 #mainDiv .article h2 a{
  color:#fff !important
}
      .sidebar {
        background: #f9f9f9;
        border: 1px solid #ddd;
        padding: 11px;
        border-radius: 5px;
        position: sticky;
        top:70px;
      }

      .sidebar h4 {
        border-bottom: 1px solid #000;
        padding-bottom: 5px;
        margin-bottom: 10px;
      }
    .masthead {
        text-align: center;
        padding: 20px 0;
        border-bottom: 2px solid #ffd200;
      }
      .masthead img {
        max-height: 100px;
      }

      #mainDiv a{
        text-decoration: none;
        color: var(--bs-heading-color);
      }
      header::before {
        content: "";
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
        border-radius: 50% / 20%;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.25);
      }

.article-img img{
    height: 100%;
    min-height:300px;
    width: 100%;
    object-fit: contain;
    vertical-align: top;
}

.article h2{
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.date{
   font-size: 12px;
    font-family: sans-serif;
    color: #495057;
    background: #e9ecef;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.category{
       color: #000f88 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    font-family: sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article .article-detail{
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}
.width70{
    width:69%
}
.width30{
    width:31%
}

@media only screen and (max-width: 768px) {
  .width70{
      width:100%
  }
  .width30{
      width:100%
  }
  .masthead img {
      max-height: 70px;
  }
  .masthead{
    padding: 0px 0px;
  }
  header::before{
    display: none;
  }
  .masthead h1{
   display: none;
  }
  .masthead p{
   display: none;
  }

}

/****************** pagination *****************/
.custom-pagination .page-item .page-link {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  color: #333;
  font-weight: 600;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  margin: 6px;
}

.custom-pagination .page-item.active .page-link {
  background-color: #007bff; 
  color: #fff;
  border-color: #007bff;
}

.custom-pagination .page-item .page-link:hover {
  background-color: #0056b3;
  color: #fff;
  border-color: #0056b3;
}

.custom-pagination .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

.flatpickr-calendar{
    text-align: center !important;
    margin:auto !important
}

@media only screen and (min-width: 1600px) {
.width70{
    width:75%
}
.width30{
    width:25%
}
}
@media only screen and (min-width: 1900px) {
.width70{
    width:78%
}
.width30{
    width:22%
}
}

.dropdown-item:focus, .dropdown-item:hover{
  color: #ffd200
}
.page_select{
    width: 16rem;
}

  .pagination {
      display: flex;
      list-style: none;
      justify-content: center;
      gap: 5px;
    }
    .pagination li {
      display: inline;
    }
    .pagination a {
      padding: 8px 12px;
      text-decoration: none;
      color: #333;
      border: 1px solid #ddd;
      border-radius: 4px;
      background: #fff;
      transition: background 0.3s, color 0.3s;
    }
    .pagination a:hover {
      background: #007bff;
      color: #fff;
    }
    .pagination .active a {
      background: #007bff;
      color: #fff;
      border-color: #007bff;
    }
    .pagination .disabled a {
      color: #aaa;
      pointer-events: none;
      background: #f9f9f9;
    }

        .gallery-container {
            display: flex;
            gap: 20px;
        }
        .main-image-container {
            flex: 1;
            position: relative;
        }
        .thumbnail-sidebar {
            width: 120px;
            overflow-y: auto;
            max-height: 1200px;
        }
        .thumbnail {
            width: 100px;
            height: 150px;
            object-fit: contain;
            margin-bottom: 10px;
            cursor: pointer;
            border: 2px solid transparent;
        }
        .thumbnail.active {
            border-color: #007bff;
        }
        .jcrop-holder {
            margin: 0 auto;
        }
        .button-container {
            position: absolute;
            z-index: 1000;
            display: flex;
            gap: 0px;
            left: 10px;
        }
        .crop-button {
            padding: 5px 15px;
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            font-size: 14px;
        }
        #share-btn {
            background: #4CAF50;
            font-family: system-ui;
            font-weight: 500;
            border-top-right-radius: 0px;
            border-bottom-right-radius: 0px;
        }
        #cancel-btn {
          background: #f44336;
          font-family: system-ui;
          font-weight: 500;
          border-top-left-radius: 0px;
          border-bottom-left-radius: 0px;
        }
        .navigation-buttons {
            display: flex;
            justify-content: space-between;
        }
        .breadcrumb{
         padding: 6px 12px;
    position: sticky !important;
    top: 56px;
    z-index: 999;
    background: rgb(255 252 252 / 83%);
        }
       
        #current-image-info {
          text-align: left;   
          font-weight: 600;
          padding-right: 6px;
        }
        .paginationcustom{
              background: rgb(254 254 254 / 36%);
    color: #007bff;
        }
        .navigation-buttons #prev-btn, .navigation-buttons #next-btn{
            background: transparent;
            border: none;
            color: #007bff;
        }
         #shareModal .modal-title{
            font-family: system-ui;
            font-size: 16px;
            color: #000;
        }
        #shareModal .modal-header {
    padding: 6px 18px;
    background: #ddd;
}
         #shareModal .modal-header .btn-close{
            opacity: 0.8;
             border: 1px solid #000;
            padding: 5px;

        }

        .crop_img_url p{
          border: 1px dashed #1a78db;
          padding: 2px;
          font-family: sans-serif;
          font-size: 13px;
        }
        #shareModal .modal-dialog {
          width: 340px !important;
        }
#shareModal .modal-dialog .modal-body{
   max-height: 400px !important;
   overflow: auto !important; 
}
#shareModal .modal-dialog .btn-close{
    --bs-btn-close-color: #000;
    --bs-btn-close-bg: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e);
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-btn-close-focus-opacity: 1;
    --bs-btn-close-disabled-opacity: 0.25;
    box-sizing: content-box;
    width: 0.6rem;
    height: 0.6rem;
    padding: 6px !important;
    padding: .25em .25em;
    color: var(--bs-btn-close-color);
    background: transparent var(--bs-btn-close-bg) center / .60em auto no-repeat;
    border-radius: .375rem;
    opacity: var(--bs-btn-close-opacity);
    
}
#shareModal .modal-header .btn-close {
    opacity: 0.8;
    border: 1px solid #000;
    padding: 5px !important;
}
@media only screen and (max-width: 600px) {
  .navbar-toggler{
    background-color: #fff;
    font-size: 18px;
  }
  .thumbnail-sidebar{
    width:auto;
    height: 600px;
  }
  .thumbnail {
    width: 70px;
    height: auto;
  }
  .breadcrumb {
    padding: 6px 0px;
  }
  .main-image-container h2 {
    font-size: calc(1rem + .9vw);
  }
  .gallery-container{
    margin-bottom: 100px;
  }
  main{
    width:100%;
    top:0
  }
}
  /* Align calendar to left side of button */
  .flatpickr-calendar {
    left: auto !important;
    right: 3% !important; /* Position calendar to the left */
  }
#archiveBtn{
      border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}
  footer{
      background: #ffc107;
    color: #000;
    text-align: center;
    padding: 5px 0px;
}

#imagePopup{
  display: none; /* Default hidden */
  position: fixed; 
  top: 0; left: 0; 
  width: 100%; height: 100%; 
  background: rgba(0, 0, 0, 0.95); 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  z-index: 9999;
}
#popupClose{     
     position: absolute;
    top: 0;
    right: 12px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: #dc3545;
    line-height: 1.6;
    height: 29px;
    text-align: center;
    z-index: 999;
    align-items: center;
    justify-content: center;
    display: flex;
    padding-bottom: 4px;
}
.popupimageWarrper{
  width: 100%; 
  height: 100vh; 
  max-width: 100%;
  background: #222; 
  overflow: auto; 
  position: relative;


}
#popupImage{
  display: block; 
  width: 100%;
  }
                   
   #mainDiv a{
        color:#000;
      }
      .article h2{
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-wrap:auto !important;
      }
    @media only screen and (max-width: 600px) {
     .article-detail{
          height:auto !important
      }
      .article-img img{        
        min-height: 250px;
      }
    }
  .owl-carousel .owl-nav.disabled {
    display: block !important;
}
.owl-carousel .owl-nav .owl-prev, .owl-carousel .owl-nav .owl-next{
    min-width: 45px !important;
    border: 1px solid #ffd200 !important;
    line-height: 1 !important;
    padding-bottom: 6px !important;
}

.owl-carousel .owl-nav .owl-prev span, .owl-carousel .owl-nav .owl-next span{
    font-size: 41px;
    font-weight: 200;
    color: #ffd200;
}

.owl-theme .owl-nav [class*=owl-]:hover {
   background: transparent !important; 
}
