/* Auto-generated wrapper to reduce duplication.
   Loads shared styles from style-master.css and keeps this page's specific differences. */

@import url("style-master.css");

/* Per-page header image (was hardcoded in this file before) */
:root {
    --page-header-img: url(../img/carousel-5.jpg);
}


/* Overrides needed to match the original look for pages that used this stylesheet */
@media (max-width: 768px) {
    .header- .owl--item {
        position: relative;
        min-height: 500px;
    }
    
    .header- .owl--item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header- .owl--item h5,
    .header- .owl--item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header- .owl--item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header- .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header- .owl-nav .owl-prev,
.header- .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header- .owl-nav .owl-prev:hover,
.header- .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header- .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header- .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header- .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

.header- .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.testimonial-::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-::before,
    .testimonial-::after {
        width: 200px;
    }
}

.testimonial- .owl-item .testimonial-text {
    border: 5px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial- .owl-item.center .testimonial-text {
    transform: scale(1);
}

.testimonial- .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial- .owl-nav .owl-prev,
.testimonial- .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial- .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/* =========================
   Publications (Grid Cards)
   Add-on styles (scoped by using .pub-*)
   ========================= */

.pub-grid{
  margin-top: 0.25rem;
}

.pub-card{
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
}

.pub-cover-wrap{
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
}

.pub-cover{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  background: transparent;
}

.pub-title{
  margin-bottom: .5rem;
  line-height: 1.2;
}

.pub-desc{
  margin-bottom: .75rem;
  color: rgba(0,0,0,.75);
  font-size: 0.98rem;
}

.pub-meta{
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(0,0,0,.75);
  font-size: 0.92rem;
}

.pub-meta li{
  margin: .15rem 0;
}

.pub-btn{
  border-radius: 999px;
  padding: .45rem .85rem;
}

.pub-card .card-body{
  padding: 1.1rem 1.1rem 0.8rem 1.1rem;
}

.pub-card .card-footer{
  padding-left: 1.1rem !important;
  padding-right: 1.1rem !important;
}

@media (max-width: 575.98px){
  .pub-cover-wrap{ padding: 12px; }
  .pub-desc{ font-size: 0.96rem; }
}


/* =========================
   PUBLICATIONS — MOBILE: move grid closer to header
   (Only affects pages where .page-header is immediately followed by .container-xxl)
   ========================= */
@media (max-width: 991.98px){
  .page-header + .container-xxl{
    margin-top: -12px !important;
    padding-top: 0 !important;
  }
}

/* PUBLICATIONS — remove card shadow/outline vibe (keeps subtle border) */
.pub-card{
  box-shadow: none !important;
}

/* =========================
   Publications buttons — match Read More animation
   ========================= */
.pub-btn{
  position: relative !important;
  display: inline-block !important;
  padding: 7px 16px !important;

  border: 1px solid #AB7442 !important;   /* primary outline */
  border-radius: 999px !important;

  background: transparent !important;
  color: #000 !important;                /* black text */

  text-decoration: none !important;
  overflow: hidden !important;
  transition: color .3s ease !important;
  z-index: 1 !important;
}

.pub-btn::before{
  content: "" !important;
  position: absolute !important;
  top: 0; left: 0;
  width: 0%;
  height: 100%;
  background: #AB7442 !important;
  transition: width .4s ease !important;
  z-index: -1 !important;
}

.pub-btn:hover{
  color: #fff !important;                /* white on hover */
}

.pub-btn:hover::before{
  width: 100% !important;                /* left → right fill */
}

/* =========================
   Publications – tighten space under header (mobile only)
   ========================= */
@media (max-width: 991.98px){

  /* Reduce header bottom spacing */
  .page-header{
    margin-bottom: 0px !important;
  }

  /* Remove top padding of publications section */
  .page-header + .container-xxl{
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* Remove extra top padding from container-xxl itself */
  .container-xxl.pt-2{
    padding-top: 0 !important;
  }

}