* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  font-family: 'Poppins', sans-serif;
  }
header {
background: url("../images/masjid haram.jpeg") no-repeat center center;
background-size: cover;
color: #fff;
text-align: center;
padding: 100px 20px;
border-radius: 12px;
max-width: 1400px;
height: 350px; 
margin: 0 auto 40px auto; 
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
text-shadow: 0 2px 4px rgba(0,0,0,0.5);     
display: flex;
flex-direction: column;
justify-content: center;
}
header h1 {
font-size: 3.5em;
margin-bottom: 10px;
}
header p {
font-size: 1.2em;
font-weight: 300;
}
.wrapper, .wrapper1 {
display: flex;
flex-wrap: wrap;
justify-content: center; 
gap: 30px;    
max-width: 1550px; 
margin: 40px auto;
width: 100%;
padding: 0 20px;
}

h2 {
font-size: 52px;
padding: 10px 0;
margin-top: 10px;
text-align: center;
}
h2 img {
height: 60px;
width: 60px;
}
.cardg {
flex: 1 1 350px; 
max-width: 450px;
height: 400px;
position: relative;
background: #fff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
transition: 0.5s ease-in-out;
cursor: pointer;
}

.cardg:hover {
transform: translateY(-20px);
box-shadow: 0 12px 30px rgba(16,32,39,0.08);
}

.cardg img {
width: 100%;
height: 100%;
border-radius: 15px;
object-fit: cover;
position: absolute;
top: 0;
left: 0;
transition: all 0.4s ease-in-out;
}
.cardg:hover img {
    filter: brightness(60%);
}
.cardg .info {
position: absolute;
color: #fff;
transform: translateY(20px);
transition: 0.5s all ease-in-out;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
background: rgba(0, 0, 0, 0.4);
text-align: center;
}

.cardg:hover .info {
opacity: 1;
transform: translateY(0px);
}

.cardg .info h2 {
margin: 0;
font-size: 28px;
color: #fff;
border-bottom: none;
}

.cardg .info p {
font-size: 16px;
color: #fff;
margin-top: 8px;
margin-bottom: 10px;
display: block ;
opacity: 1; 
line-height: 1.4;
}

.button {
text-decoration: none;
padding: 6px 12px;
background: #0f5132;
color: #fff;
font-size: 14px;
border-radius: 4px;
transition: 0.4s all ease-in-out;
cursor: pointer;
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
margin: 5px;
}

.button:hover {
box-shadow: 0 4px 10px rgba(0,0,0,0.4); 
transform: scale(1.05);
}

.btn-group {
display: flex;
gap: 10px;
justify-content: center; 
margin-top: 15px;
}
.simple-footer {
    background-color: #0f5132;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin-top: 50px;
}

.footer-container p {
    font-size: 14px;
    margin: 0;
    letter-spacing: 1px;
}

.footer-container span {
    font-weight: bold;
    color: #ffd700;
}

@media (max-width: 768px) {
    header h1 { font-size: 2.5em; }
    h2 { font-size: 35px; }
    .cardg { flex-basis: 100%; }
}