/*
 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
*/


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

.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:20px;
}

/* Tablet */
@media (max-width: 1024px) {
     .silvesterlegal-content{
     padding:20px;
  }
	
	.inside-header{
	  padding:20px;
}
}

/* Mobile */
@media (max-width: 768px) {
  .silvesterlegal-content{
     padding:20px;
  }
	
	.inside-header{
	  padding:20px;
}
	
}

/* Card */

.service-card {
  position: relative;
  height: 480px;
  border-radius: 18px;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  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;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
}

/* 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: 26px;
  line-height: 1.3;
  color: #111;
  text-align: center;
  transition: transform 0.45s ease;
}

/* 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;
  text-decoration: none;
  font-weight: 500;
}

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

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




/* Card */