/* navbar */
body {
  padding-top: 100px;
}

#topbar {
  z-index: 1050;
}
.navbar.fixed-top {
  z-index: 1020;
}
.navbar-nav .nav-link {
  transition: 0.3s;
}
.navbar-nav .nav-link:hover {
  color: #0d6efd !important;
  text-decoration: underline;
}
.navbar {
  padding: 10px 0px;
  top:45px;
}
.navbar-nav {
  gap: 20px;
}

#topbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    transition: top 0.3s;
}

#mainNavbar {
    position: fixed;
    top: 45px; 
    width: 100%;
    z-index: 1040;
    transition: top 0.3s;
}
.slogan {
	font-size: 15px;
    text-align: center;
}

/* side bar */
.pdg {
    font-size: 13px !important;
    padding: 2px 8px !important;
    font-weight: bold !important;
    text-align: center !important;
}
.side-heading {
	font-size:17px; 
	color:#3e3e90; 
	font-weight:bold;
}
.meeting-info {
	font-size:15px;
}
.meeting-disc {
	font-size:14px; 
	line-height:1.6; 
	text-align:justify;
}

/* home page */
.img-fixed {
    width: 100%;
    height: 300px;      
    object-fit: cover; 
}
.carousel-fade {
	margin-top: 25px;
}
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}
.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
}

/* About Page */
.about-line {
	line-height:1.7;
}
.about-content {
	border-top: 2px solid #333; 
	width:50px; 
	margin-left:0;
}
.about-list {
	list-style:none; 
	padding-left:0;
}
.about-list li {
	color: #222;
}

/* facilities page */
.special-w3ls h2 {
  color: #003366;
  font-weight: 700;
  text-transform: uppercase;
}
.special-w3ls h4 {
  color: #2C689D;
  font-weight: 600;
}
.special-w3ls p {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}
.carousel-inter img {
  border-radius: 10px;
  height: 700px;
  object-fit: cover;
}

/* management page */
.text-center.mt-4 {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.text-center.mt-4 p {
  margin-bottom: 6px;
}
.text-center.mt-4 .divider-line {
  width: 100%;
  height: 2px;
  background-color: #dadadc;
  margin: 20px auto;
  border-radius: 2px;
}
.individualstaff {
color:#2C689D;
}
.staff-position {
	color:green;
}

/* publication page */
.publication-heading {
    font-size: 28px;
    font-weight: 700;
    color: #2C689D;
    text-align: center;
    margin-bottom: 30px;
}
/* Publication Table */
.publication-table {
    width: 70%;
    margin: 0 auto;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* Table Cells */
.publication-table td {
    padding: 15px 10px; 
    vertical-align: middle;
}
/* Publication Title */
.publication-title {
    font-weight: 600;
    font-size: 16px;
    color: #2C689D;
    margin: 0;
}
/* Buttons */
.btn-download, .btn-view {
    font-size: 16px;
    color: #fff;
    background-color: #2C689D;
    padding: 5px 20px; 
    border-radius: 5px;
    text-decoration: none;
    display: inline-block; 
    transition: 0.3s;
}
.btn-download:hover {
    background-color: #1a3f6d;
}
.btn-view:hover {
    background-color: #3e82c4;
}

/* gallery page */
.heading {
	color: #003366;
}
.filter-tabs li {
    color: #fff;
    cursor: pointer;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 25px;
    background: #3179c3; 
    border: 1px solid #ddd;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}
.filter-tabs li:hover {
    background: #fff;
    color: #3179c3;
    border-color: #3179c3;
}
.filter-tabs li.active {
    background: #3179c3;
    color: #fff;
    border-color: #3179c3;
}
/* Gallery Container */
.filter-list {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
/* Gallery Item */
.default-portfolio-item {
    flex: 0 0 calc(25% - 20px); 
    max-width: calc(25% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.default-portfolio-item .inner-box {
    width: 100%;
}

/* Image Box */
.image-box {
    width: 100%;
    height: 200px; 
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}
.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}
.image-box img:hover {
    transform: scale(1.05);
}

/* Caption */
.caption-box-two h3 {
    font-size: 16px;
    color: #333;
    margin-top: 8px;
    text-align: center;
}

/* Fancybox Toolbar Fix */
.lg-toolbar .lg-close { display: block !important; }
.lg-toolbar .lg-download,
.lg-toolbar .lg-fullscreen,
.lg-toolbar .lg-autoplay-button,
.lg-toolbar .lg-zoom-in,
.lg-toolbar .lg-zoom-out { display: none !important; }

/* Restrict gallery grid within same container width as content */
.filter-list {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Align gallery with left + right columns */
.filter-list .default-portfolio-item {
  flex: 0 0 calc(25% - 20px);
  max-width: calc(25% - 20px);
}

/* Keep consistency on larger screens */
@media (min-width: 1200px) {
  .filter-list {
    max-width: 1140px;
  }
}

/* Adjust for medium and small devices */
@media (max-width: 992px) {
  .filter-list .default-portfolio-item {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .filter-list .default-portfolio-item {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .filter-list .default-portfolio-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/*pop up form */
.custom-modal {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.custom-modal .modal-header {
    background: #f5f9ff;
    text-align: center;
    flex-direction: column;
    padding: 25px 20px;
}

.custom-modal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #3179c3;
}

.custom-modal .btn-close {
    position: absolute;
    top: 35px;
    right: 25px;
}

.custom-modal .form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all 0.3s;
}

.custom-modal .form-control:focus {
    border-color: #3179c3;
    box-shadow: 0 0 5px rgba(49,121,195,0.3);
}

.custom-modal .btn-submit {
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.custom-modal .btn-submit:hover {
    background-color: #255b99;
    color: #fff;
}

.error-container {
    color: red;
    font-size: 14px;
    text-align: center;
}

.sponsors h3 {
    font-weight: 600;
    margin-bottom: 20px;
}

.sponsors img {
    max-height: 80px;
    width: 70px;	
    object-fit: contain;
    transition: transform 0.3s;
}

.sponsors img:hover {
    transform: scale(1.1); 
}

/* footer */
.footer-section{
    text-align: center;
    margin-left: 310px;
}
.footer-about {
	margin-top: 30px;
}
.footer-margin {
	margin-top: 0px;
}

/* bread crumb */
.breadcrumb-section {
    height: 270px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 28px;
}

.breadcrumb-section .breadcrumb-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/breadcrumb-bg.jpg') center center / cover no-repeat;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
}

.breadcrumb-section h2 {
    font-size: 2rem;
    font-weight: 700;
}

.breadcrumb-section .breadcrumb a {
    color: #fff;
}

.breadcrumb-section .breadcrumb a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

.breadcrumb-section .breadcrumb .active {
    color: #ddd;
}

/* contact page */
.contact-container {
	z-index: 2;
}
.contact-details {
	font-weight:bold;
}
.contact-info {
	color:#e74c3c; 
	margin-right:10px;
}

/* Mobile Responsive Footer Centering */
@media (max-width: 768px) {
    .footer-section .d-flex {
        justify-content: center !important;
        text-align: center;
    }
	    .default-portfolio-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
	.home {
		margin-top: -20px;
	}
	.carousel-inter img {
		height: 210px;
   }
   .carousel-fade {
	   margin-top: 24px;
   }
   .text-light,
   .slogan {
	   font-size: 13px;
   }
}
@media (max-width: 576px) {
    .custom-modal .modal-dialog {
        margin: 1rem;
    }
    .custom-modal .modal-title {
        font-size: 16px;
    }
	 .default-portfolio-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
@media (max-width: 1200px) {
    .default-portfolio-item {
        flex: 0 0 calc(33.33% - 15px);
        max-width: calc(33.33% - 15px);
    }
}
/* Responsive Fixes for Gallery */

/* For tablets (below 992px) */
@media (max-width: 991px) {
  .default-portfolio-item {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}

/* For small screens (below 768px) */
@media (max-width: 767px) {
  .default-portfolio-item {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
  .image-box {
    height: 180px;
  }
}

/* For extra small screens (below 480px) */
@media (max-width: 480px) {
  .default-portfolio-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .image-box {
    height: 200px;
  }
  .filter-tabs li {
    padding: 8px 15px;
    font-size: 14px;
  }
}