@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --primary: #8D0000;
    --secondary: #FFFFFF;
    --black: #222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Rubik", sans-serif;
    text-decoration: none;
 
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

.top-header{
    top: 0;
    background: var(--primary);
}

.top-header .navbar {
    padding: 1px 0px;
}


.search-form .form-group input.form-search {
    width: 0;
    height: 32px;
    padding-right: 30px; /* Space for icon */
    border: 1px solid var(--primary);
    background: transparent;
    box-shadow: none;
    transition: width 0.35s ease;
    border-radius: 25px;
    opacity: 0;
  }
  
  /* Search icon styling */
  .search-form .form-group button.search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    font-size: 18px;
    color: var(--primary);
    cursor: pointer;
    outline: none;
  }

  /* Expand search box on focus */
.search-form .form-group:hover input.form-search,
.search-form .form-group input.form-search:focus {
  width: 150px; /* Adjust to desired width when expanded */
  opacity: 1;
  background-color: #ffffff;
  padding-left: 10px;
  margin-top: 10px;
}

/* Hide search icon when input is focused */
.search-form .form-group:hover button.search-icon,
.search-form .form-group input.form-search:focus + button.search-icon {
  visibility: hidden;
  opacity: 0;
}


.nav-link img {
    width: 30px;
    margin-left: -6px;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #f8f9fa!important;
}



/* -------------- Hours Container --------------- */
.hours-container {
    display: none;
    justify-content: space-around;
    padding: 0 7%;
   z-index: 999;
   position: absolute;
}

.hours-box {
    background: var(--secondary);
    border: 1px solid var(--primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 5px;
}

.hours-header {
    background: var(--primary);
    color: var(--secondary);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #DDD;
}

.hours-list li:last-child {
    border-bottom: none;
}

/* -------------- Hours Container  Ends--------------- */

/* -------------- Carousel  starts--------------- */
/* .carousel-item img {
    width: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
} */
/* Make sure the text inside the slider is visible */
.swiper-slide h1, .swiper-slide p {
    display: block; /* Ensure visibility */
    color: white;   /* Set color for better visibility */
    z-index: 2;     /* Ensure the text appears above the image */
    position: relative;
  }
  
  /* Ensure the text remains responsive */
  .swiper-title {
    /* font-size: 36px; */
    line-height: 1.2;
    font-weight: bold;
    color: white;
  }
  
  @media (max-width: 768px) {
    .swiper-title {
        font-size: 24px;
        line-height: 1.3;
    }
  }
  
  @media (max-width: 576px) {
    .swiper-title {
        font-size: 10px;
        line-height: 1.2;
    }
  }
  
  .swiper-text {
    font-size: 16px;
    line-height: 1.5;
    color: white;
  }
  
  @media (max-width: 768px) {
    .swiper-text {
        font-size: 14px;
        line-height: 1.4;
    }
  }
  
  @media (max-width: 576px) {
    .swiper-text {
        font-size: 8px;
        line-height: 1.3;
    }
  }

@media (max-width: 576px) {
    .swiper-title {
        position: relative !important;
        font-size: 10px;
        line-height: 1.2;
        top: 60px;
    }
}
  
  /* Ensure the text doesn't overlap the image and remains centered */
  .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    position: relative;
  }
  
  .swipeinner {
    width: 100%;
    padding: 20px;
    z-index: 2;
    position: relative;
  }

  @media (max-width: 768px) {
    .carousel-caption, .swiper-text {
      display: block !important; /* Overrides the d-none */
    }
  }

  @media (max-width: 576px) {
    .animated p {
        position: relative;
        font-size: 8px;
        line-height: 1.2;
        top: 35px;
    }
    .slider-1 {
        position: relative;
        top: 20px;
    }
}

@media (max-width: 991px) {
    .top-header {
        display: none !important;
    }
}

.more-link {
    display: flex;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    justify-content: flex-end;
}

.services-list .more-link a, .event-list .more-link a{
    font-size: 13px;
    color: var(--primary);
    margin-top: 16px;
}

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex
;
    justify-content: center;
    align-items: center;
}
  
  /* Set higher z-index for carousel controls */
  .carousel-control-prev,
  .carousel-control-next {
    z-index: 15;
  }

  .overlay-img {
    position: relative;
  }
  
  .overlay-img::before {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    width: 100%;
    height: 100%;
  }
  
  .overlay-img img {
    display: block;
    max-width: 100%;
    height: auto;
  }
  

  /* Adjust overlay z-index if needed */
.overlay-img:before, .bg-overlay-black-40:before {
    z-index: 1; /* Ensure this is lower than the carousel controls */
  }


/* -------------- Carousel  ends--------------- */

/* -------------- Services  starts--------------- */
.icon-container {
    background-color: #f5e3e3;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    margin: auto;
}

.icon-container i{
    color: var(--primary);
}

.card-holder {
    border: 1px solid var(--primary);
    border-radius: 8px;
}

.card-title, .card-text{
    color: var(--black);
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.services-item {
   float: left;
}
.services-list .news-item {
    min-height: 350px !important;
}
.line-clamp-3{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.line-clamp-2{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* -------------- Services  ends--------------- */

.reseach-img{
    max-width: 100%;
    border-radius: 10px;
}
section{
    padding-top: 100px;
}
a{
    text-decoration: none !important;
}

/* -------------- News and Events --------------- */
.news-content .date {
    font-size: 12px;
    color: #999;
}

.news-content h6 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
}

.news-content p {
    margin: 10px 0;
    font-size: 14px;
    opacity: 80%;
    color: var(--black);
}

.news-item, .event-item{
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.news-item-all{
    min-height: 400px !important;
}

.news-item:hover, .event-item:hover{
    webkit-transform: translateY(-10px);
    transform: translateY(-10px);
}
.card-holder:hover{
    box-shadow: 0 4px 12px rgba(56, 56, 56, 0.2);
    border: 1px solid var(--black);
}


/* .events{
    max-height: 100px;
    border-radius: 10px;
} */
/* .event-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
} */

/* .event-date {
    background-color: var(--primary);
    color: white;
    text-align: center;
    align-content: center;
    max-height: 100px;
    width: 100px;
} */

/* .event-info .time-loc {
    display: flex;
    margin-top: 16px;
    gap: 15px;
}
.event-time, .event-location {
    font-size: 10px;
    color: #666;
} */

/* .event {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    height: 124px;
} */

/* .event-info .event-location{
    display: flex;
    margin-top: 16px;
    gap: 15px;
} */

.library{
    min-height: 250px;
    background-color: rgba(141, 0, 0, 5%);
    padding: 10px;
}
.phil{
    min-height: 50px;
    background-color: rgba(141, 0, 0, 5%);
    padding: 10px;
    border-radius: 10px;
}

.date{
    background-color: var(--primary);
    border-radius: 5px;
}

.event-list .card{
    border-radius: 7px;
}

 /* -------------Services----------- */
 .image-container {
    position: relative;
}

.card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); 
    color: white;                  
    padding: 10px;                 
    text-align: center;            
}

/*****************************/
.nav-tabs {
  border: none; }
  .nav-tabs .nav-link {
    background: #949895;
    color: #ffffff;
    border-radius: 0;
    border: none;
    padding: 15px 10px;
    font-size: 16px;
    font-weight: 600;
    width: 25%;
    text-align: center; }

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
  border: none;
  color: #ffffff;
  background: var(--primary); }

  .row-custom {
    display: inline-block;
    width: 100%;
}

@media (max-width: 575px) {
    .nav-tabs .nav-link {
        padding: 15px 30px;
        width: 100%;
        margin-bottom: 10px;
    }
}

/*****************************/

/* ------------our team--------- */
.our-team{
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.our-team:before,
.our-team:after{
    content: "";
    width: 130px;
    height: 150px;
    background: #8D0000;
    position: absolute;
    z-index: -1;
}
.our-team:before{
    bottom: -20px;
    left: 0;
}
.our-team:after{
    top: -20px;
    right: 0;
}
.our-team .pic{
    margin: 10px;
    position: relative;
    border: 3px solid #8D0000;
    transition: all 0.5s ease 0s;
}
.our-team:hover .pic{
    border-color: #33343e;
}
.our-team .pic:after{
    content: "";
    width: 100%;
    height: 0;
    background: #33343e;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform-origin: 0 0 0;
    transition: all 0.5s ease 0s;
}
.our-team:hover .pic:after{
    height: 100%;
    opacity: 0.85;
}
.our-team img{
    width: 100%;
    height: auto;
}
.our-team .team-content{
    width: 100%;
    position: absolute;
    top: -50%;
    left: 0;
    transition: all 0.5s ease 0.2s;
}
.our-team:hover .team-content{
    top: 38%;
}
.our-team .title{
    font-size: 18px;
    padding-left: 5px;
    padding-right: 5px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}
.our-team .post{
    font-size: 14px;
    padding-left: 20px;
    padding-right: 20px;
    color: #fff;
    line-height: 26px;
    text-transform: capitalize;
}
.image-name{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    text-align: center;
}

@media only screen and (max-width: 990px){
    .our-team{ margin-bottom: 30px; }
}

@media (max-width: 990px){
    .our-team .title{ font-size: 10px; padding-left: 10px; padding-right: 10px; }
    .our-team .post{ font-size: 7px;}
}


.main-events .date {
    background-color: #b00020;
    color: white !important;
    padding: 10px;
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 8px;
}

.main-events .date h6{
    font-size: 31px;
    text-align: center;
    font-weight: 400;
}

.events-content p {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
}

.main-events .events-content h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: bold;
    color: #222222;
}

.main-events .events-content h3:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* .....................Side bar........... */
.sidebar h2 {
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: white;
    background-color: #8B0000;
    align-items: center;
    padding: 15px;
    border-radius: 5px;
    font-size: 13px;
    font-size: 20px;
    font-weight: 400;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 7px;
}

.layout-sidebar-first li .is-active {
    border: 2px solid #8B0000;
    color: #8B0000;
    background-color: white !important;
}

/* li .active {
    border: 2px solid #8B0000;
    color: #8B0000;
    background-color: white;
} */

.sidebar ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
    text-decoration: none;
    background-color: hsla(0, 0%, 0%, 5%);
    padding: 15px;
    border-radius: 5px;
    font-size: 13px;
}

.sidebar ul li a:hover, .sidebar ul li .active {
    border: 2px solid #8B0000;
    color: #8B0000;
    background-color: white;
}



/* ------------Services details--------------- */

.services-content {
    position: relative;
    width: 100%;
    max-height: 300px !important;
    overflow: hidden;
}

.services-title{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.services-title p {
    font-size: 15px;
}


/* Top Menu Styles */
.top-menu > .nav-item > .nav-link {
    color: white !important; /* Top menu links are white */
  }
  
  .top-submenu > .dropdown-item a{
    color: black !important; /* Submenu items in top menu are black */
  }
  
  /* Ensure hover styles for the top menu */
  .top-menu > .nav-item > .nav-link:hover,
  .top-menu > .nav-item > .nav-link:focus {
    color: white !important;
  }
  
  .top-submenu > .dropdown-item:hover,
  .top-submenu > .dropdown-item:focus {
    color: rgb(0, 0, 0) !important;
    /* background-color: black !important; */
  }
  
  /* Main Menu Styles */
  .main-menu > .nav-item > .nav-link {
    color: black; /* Default black for the main menu links */
  }
  
  .main-submenu > .dropdown-item {
    color: black; /* Submenu items in main menu remain black */
  }
  
  .main-menu > .nav-item > .nav-link:hover,
  .main-menu > .nav-item > .nav-link:focus {
    color: black; /* Maintain black on hover */
  }
  .dropdown-item{
    padding: 0px !important;
    white-space: inherit !important;
  }
  .dropdown-menu{
    width: 250px !important;
    left: auto !important;
  }

/* .main-content .services-title h1, .main-content .services-title p {
    position: relative;
    color: white;
    margin: 0;
    bottom: 30px;
    padding-left: 90px !important;
    padding-right: 50px !important;
    z-index: 2;
    text-align: center;
} */

@media (max-width: 991px) {
    .main-content .services-title h1 {
        font-size: 16px;
        font-weight: 600;
    }
    .main-content .services-title p {
        font-size: 12px;
    }
}

@media (max-width: 768px){
    table{
        width: 100% !important;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
.main-content .card-two h4 {
    margin-top: 26px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
}

.card-four h6, .card-three h4, .discussion{
    font-weight: bold;
}




/* ------------------ FAQs-------------- */

.card-header button{
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    text-decoration: none;
    color: #212121;
}
.card-header button:hover{
    font-size: 14px;
    text-decoration: none;
    color: #212121;
}

.card-header{
    border: 1px solid #ddd;
}

.accordion{
    margin-bottom: 10px;
}

.cat table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.cat table, th, td {
    border: 1px solid #ddd;
}

.cat th, td {
    padding: 10px;
    text-align: left;
    word-break: break-word;
}

.cat th {
    background-color: #f2f2f2;
}

.librarian-card{
    margin-top: 20px;
}
.librarian-info img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: inherit;
    border: 2px solid var(--primary);
}
.info{
    line-height: 10px;
}
.qr-code img {
    width: 130px;
    height: 187px;
}

.qr-code a {
    font-size: 9px;
    color: #4CAF50;
}

.resources h6, .academic-skills h6, .assistance h6 {
    margin-top: 20px;
    margin-bottom: 20px;
    color: #8B0000;
}

.resources h6 {
    font-weight: 500;
    margin-bottom: 20px;
    margin-top: 30px;
}
.academic-skills ul, .assistance ul {
    list-style-type: none;
    padding: 0;
}
.academic-skills ul li, .assistance ul li {
    margin: 5px 0;
}

.assistance ul li a {
    color: #8B0000;
    text-decoration: none;
}


/* ------------footer--------- */
.col_white_amrc { 
    color:#FFF;
}
footer { 
    width:100%; 
    background-color:#263238; 
    min-height:250px; 
    padding:10px 0px 25px 0px ;
}
.pt2 { 
    padding-top:40px ; 
    margin-bottom:20px ;
}
footer p { 
    font-size:13px; 
    color:#CCC; 
    padding-bottom:0px; 
    margin-bottom:8px;
}
.mb10 { 
    padding-bottom:15px ;
}
.footer_ul_amrc { 
    margin:0px; 
    list-style-type:none; 
    font-size:14px; 
    padding:0px 0px 10px 0px ; 
}
.footer_ul_amrc li {
    padding:0px 0px 5px 0px;
}
.footer_ul_amrc li a{ 
    color:#CCC;
}
.footer_ul_amrc li a:hover{ 
    color:#fff; 
    text-decoration:none;
}
.fleft { 
    float:left;
}
.padding-right { 
    padding-right:10px; 
}

.footer_ul2_amrc {
    margin:0px; 
    list-style-type:none; 
    padding:0px;
}
.footer_ul2_amrc li p { 
    display:table; 
}
.footer_ul2_amrc li a:hover { 
    text-decoration:none;
}
.footer_ul2_amrc li i { 
    margin-top:5px;
}
.bottom_border { 
    border-bottom:1px solid #323f45; 
    padding-bottom:20px;
}
.foote_bottom_ul_amrc {
	list-style-type:none;
	padding:0px;
	display:table;
	margin-top: 10px;
	margin-right: auto;
	margin-bottom: 10px;
	margin-left: auto;
}
.foote_bottom_ul_amrc li { 
    display:inline;
}
.foote_bottom_ul_amrc li a { 
    color:#999; 
    margin:0 12px;
}

#block-quicklinks-menu{
    color:#FFF;
    padding-top:40px ; 
    margin-bottom:20px;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
}
#block-quicklinks ul{
    margin: 0px;
    list-style-type: none;
    font-size: 14px;
    padding: 0px 0px 10px 0px;
}

#block-quicklinks ul li{
    padding: 0px 0px 5px 0px;
}

#block-quicklinks ul li a{
    color: #CCC;
}
#block-resources-menu{
    color:#FFF;
    padding-top:40px ; 
    margin-bottom:20px;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
}
#block-resources ul{
    margin: 0px;
    list-style-type: none;
    font-size: 14px;
    padding: 0px 0px 10px 0px;
}

#block-resources ul li{
    padding: 0px 0px 5px 0px;
}

#block-resources ul li a{
    color: #CCC;
}
#block-footer4 h2{
    color:#FFF;
    padding-top:40px ; 
    margin-bottom:20px;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
}



.right li {
    list-style-type: none;
}
.right li a {
        color: rgba(0, 0, 0, .5);
}

.right li a:hover {
    color: rgba(0, 0, 0, .7);
}


.border-bottom {
    border-bottom-color: #eeeeee !important;
}

.avatar {
    width: 50px;
    height: 50px;
    display: inline-block;
    -o-object-fit: cover;
    object-fit: cover;
}
.border-radius {
    border-radius: 5px !important;
}

.blog {
    position: relative;
    overflow: hidden;
}

.blog .blog-image {
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 200px;
    flex: 0 0 200px;
}

.news-detail img {
    width: 100%;
    height: auto;
    border-radius: 5px !important;
}

img {
    max-width: 100%;
    height: auto;
}
.blog .blog-content {
    border-radius: 0px;
}
.blog .blog-title {
    line-height: 28px;
    margin-bottom: 0;
}

.blog .blog-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 15px;
}

.owl-item img {
    width: auto !important;
}

