/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


@font-face {
    font-display: swap;
}


body {
  padding: 0;
  margin: 0;
  font-size: 18px; /* Base font size */
	
}

body, .entry-content{
	background: linear-gradient(
        to right,
        #F4F4F4 0%,
        #ebebeb 0%,
        #ffffff 30%,
        #FFFFFF 100%
    );
}

.main-navigation li {
    padding: 0px 0px !important;
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .main-navigation li {
    padding: 0px 0px !important;
}
}

.footer-widgets{
	background: linear-gradient(
        to right,
        #FFFFFF 0%,      /* start gray */
        #FFFFFF 50%,     /* intermediate gray */
        #ebebeb 80%,     /* almost white in middle */
        #f4f4f4 100%      /* solid white at the end */
    );
}


.inside-header{
	  margin-left: auto;
  margin-right: auto;
  max-width: 1440px !important;
	padding: 20px 20px;
}


.silvesterlegal-content{
  margin-left: auto;
  margin-right: auto;
  max-width: 1440px !important;
	padding:15px;
}

/* Tablet */
@media (max-width: 1024px) {
     .silvesterlegal-content{
     padding:20px 0px;
  }
	
	.inside-header{
	  padding:20px;
}
	
	.footer-widgets-container {
        padding-top: 30px;
        padding-right: 15px;
        padding-bottom: 30px;
        padding-left: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
  .silvesterlegal-content{
     padding:20px 0px;
  }
	
	.inside-header{
	  padding:20px;
}
	
	.footer-widgets-container {
        padding-top: 30px;
        padding-right: 15px;
        padding-bottom: 30px;
        padding-left: 15px;
    }
	
}



/* Card */

.service-card {
  position: relative;
  height: 350px;
  border-radius: 18px;
}

/* Gradient border */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(to bottom, #C3C3C3, #707070);

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* NEW: inner content wrapper */
.service-card-inner {
  height: 100%;
  border-radius: 17px; /* slightly smaller than 18px */
  overflow: hidden;
}



.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px; /* slightly smaller than 18px */
}


.service-card .overlay {
  position: absolute;
  inset: 0;
}

/* Content layer */
.service-card .content {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* TITLE — TRUE CENTER */
.service-card h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 18px;
  font-weight:600;
  line-height: 1.3;
  color: #111;
  text-align: center;
  transition: transform 0.45s ease;
  width:100%;
}

/* DESCRIPTION — CENTERED */
.hover-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(40px);
  width: 80%;
  text-align: center;
  opacity: 0;
  transition: all 0.45s ease;
}

.hover-content p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

.read-more {
  color: #c4161c !important;
  text-decoration: none;
  font-weight: 500;
	font-size:16px;
}

.read-more a:hover {
  color: #c4161c !important;
}

/* HOVER EFFECT */
.service-card:hover h3 {
  transform: translate(-50%, -210%); /* 🔥 pushed further up */
}

.service-card:hover .hover-content {
  opacity: 1;
  transform: translate(-50%, -30%); /* 🔥 true center */
}

/* Card */


/* Footer */
.footer-title{
	margin-bottom:-20px !important;
	font-size:16px;
	font-weight:600;
	color:#B61329;
}

.footer-widget-2 ul li a, .footer-widget-3 ul li a {
    font-size: 16px;
    font-weight: 400;
    color: #222222;
    text-decoration: none;
}

.footer-widget-2 ul li a:hover, .footer-widget-3 ul li a:hover {
    color: #B61329;
}


/* Footer */


/* Table */
.case-timeline {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    font-family: poppins;
}

.timeline-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 40px;
    padding: 15px 0;
    border-bottom: 1px solid #dcdcdc;
}

.timeline-year {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
}

.timeline-content {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.7;
}
@media (max-width: 768px) {
    .timeline-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .timeline-year {
        font-size: 17px;
    }
}

/* Table */


/* Career Table */
.case-timeline-career {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    font-family: poppins;
}

.timeline-row-career {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    padding: 15px 0;
    border-bottom: 1px solid #dcdcdc;
}

.timeline-career {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
}

.timeline-content-career {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.7;
}
@media (max-width: 768px) {
    .timeline-row-career {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .timeline-career {
        font-size: 17px;
    }
}

/* Career Table */

/* Banner Animation */

/* -------------------- Banner Animation -------------------- */

.hero-banner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    height: 100vh;
    padding-top: 20px;
}

/* Paragraph styling */
.banner-para {
    font-weight: 700;
    margin: 0;
    opacity: 0;

    /* smoother entrance */
    transform: translateY(20px);
    /*filter: blur(6px);*/

    transition: 
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.8s ease;

    text-align: center;
    z-index: 2;
    position: absolute;
    width: 90%;
}

/* Paragraph positions */
#para1 {
    top: 60px;
    font-family: "Lora";
    font-weight: 400;
    font-size: 55px;
    color: #222;
}

#para2 {
    top: 110px;
    font-family: "Lora";
    font-weight: 400;
    font-size: 55px;
    color: #B61329;
}

/* ACTIVE STATE (triggered by JS) */
.banner-para.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Image */
.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    opacity: 0;

    transition: opacity 1.2s ease;
    z-index: 1;
}

/* Image visible */
.banner-image.show {
    opacity: 1;
}

/* -------------------- Responsive -------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .hero-banner {
        height: auto;
        padding-top: 15px;
    }

    .banner-image {
        position: relative;
        height: auto;
        object-fit: contain;
    }

    .banner-para {
        font-size: 30px;
        width: 90%;
        line-height: 1.2;
    }

    #para1 {
        font-size: 30px;
        top: 50px;
    }

    #para2 {
        font-size: 30px;
        top: 80px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-banner {
        height: auto;
        padding-top: 10px;
    }

    .banner-image {
        position: relative;
        height: auto;
        object-fit: contain;
    }

    .banner-para {
        font-size: 20px;
        width: 95%;
        line-height: 1.2;
    }

    #para1 {
        font-size: 20px;
        top: 30px;
    }

    #para2 {
        font-size: 20px;
        top: 50px;
    }
}


/* Banner Animation */

/* Testimonial */
:where(.gb-carousel-pagination) .gb-carousel-dot.is-active{
	background:#B61329 !important;
}

:where(.gb-carousel-pagination) .gb-carousel-dot{
	background:#fff !important;
}


.gb-carousel-pagination {
    position: relative !important;   /* remove absolute positioning */
    display: inline-flex !important; 
    width: auto !important;
    max-width: max-content !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    background: #e0e0e0;
    border-radius: 10px;
    padding: 8px 14px;
    gap: 8px;
    align-items: center;
}

/* Center it */
.gb-carousel-pagination {
    margin-left: auto;
    margin-right: auto;
}

.silvester-testimonial {
    padding: 20px;
    border-radius: 10px;
    background: white;
    position: relative;
    z-index: 1;
}

.silvester-testimonial::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px; /* border thickness */
    border-radius: 10px;
    background: linear-gradient(to right, #CECECE, #F5F5F5);
    
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    z-index: -1;
}




/* Testimonial */

.silvester-envelope a svg{
	color:#B61329 !important;
}

.text-highlight {
    color: #B61329;
}


.main-navigation .main-nav ul ul li a {
    font-weight:400;
}

.menu-item-has-children .dropdown-menu-toggle {

    padding-right: 0px !important;
    padding-left: 5px !important;
}

/*
.accordion-career .gb-text::first-letter {
    color: red;
}
*/

.career-red-banner a{
	color:#fff;
}

.career-info .career-info-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.career-info .gb-shape {
    margin-left: auto;
}

.career-notable-box {
    border: 1px solid;
    border-image: linear-gradient(180deg, #f6d77a, #e8a93a) 1;
}

.meet-name-line {
  position: relative;
  display: block;
  text-align: center;
	margin-bottom:5px;
	text-decoration:none;
}

.meet-name-line::after {
  content: "";
  display: block;
  margin: 1px auto 0; /* centers the line */
  width: 60%; /* control underline length */
  height: 1px;
  background: #fff;
	text-decoration:none;
}


.career-info .gb-shape svg {
  transition: transform 0.3s ease;
}

.career-info:hover .gb-shape svg {
  transform: rotate(45deg);
}


.career-info {
  text-decoration: none;
  color: inherit;
}

.popup-overflow {
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 10px; /* prevents scrollbar overlap */
}

.gb-overlay__content {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Knowledge Hub */


.hover-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #cecece;
  height: 350px; /* 👈 fixed height */
}

/* make image fill the box nicely */
.hover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 👈 prevents stretching */
  display: block;
  transition: 0.4s ease;
}

/* overlay */
.hover-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  transition: 0.4s ease;
}

/* TITLE (always visible, centered) */
.hover-card .title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.4s ease;
  z-index: 2;

}

.hover-card .title h3 {
  margin: 0;
  padding: 0 20px;
		font-size:20px;
	font-weight:600;
	font-family:"Poppins";
}

/* CONTENT (hidden initially) */
.hover-card .content {
  position: absolute;
  left: 50%;
  bottom: -1050px; /* hidden */
  transform: translateX(-50%);
  text-align: center;
  width: 80%;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
			font-size:16px;
	font-weight:400;
}

.hover-card a {
  color: #c40018;
  text-decoration: none;
  font-weight: 500;
}

/* HOVER EFFECT */
.hover-card:hover img {
  transform: scale(1.05);
}

.hover-card:hover .overlay {
  background: rgba(255,255,255,0.8);
}

/* move title up */
.hover-card:hover .title {
  transform: translateY(-80px);
}

/* slide content up */
.hover-card:hover .content {
  bottom: 80px;
  opacity: 1;
}

/* For Team Member Posts */
body.single-meet-the-team #page {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.team-member-gradient {
	background: linear-gradient(
        to right,
        #F4F4F4 0%,
        #ebebeb 20%,
        #ffffff 50%,
        #FFFFFF 100%
    )
}

.custom-acf-list-team-members .custom-acf-list-item-team-members {
	padding: 15px 25px;
    margin: 0;
    border-bottom: 1px solid #cecece; 
    font-size: 20px;
	font-weight: 400;
    line-height: 1.5;
    color: #333333;
}

@media (max-width: 767px) {
	.custom-acf-list-team-members .custom-acf-list-item-team-members {
		padding-left: 0;
		padding-right: 0;
	}
}


.scrolling-team-tabs .gb-tabs__menu::-webkit-scrollbar {
	display: none;
}

.grabbable-scroll-container.is-active-grab {
    cursor: grabbing; 
    user-select: none;
}

.grabbable-scroll-container.is-dragging * {
    pointer-events: none !important;
}

