* {
    margin: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

.background {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    align-items: center;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0, 0, 0, 0.646)),url(bg.jpeg);
    background-size: cover;
    background-position: center;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
  }
  

  .navbar a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    display: inline-block;
  }

  .navbar a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
  }

  .navbar a:hover::before {
    width: 100%;
  }

.logo {
    height: 50px;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    max-width: 800px;
    text-align: center;
    color: #fff;
    padding: 60px 20px;
}


.content h1  {
    font-family: 'Cinzel', serif;
    font-weight: 700; 
    letter-spacing: 3px; 
    font-size: 3.5rem;
    margin: 10px; 
    padding: 30px;
    line-height: 1px;
}

.content p {
    font-size: large;
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
}

.container {
    width: 100%;
    position: relative;
    height: auto;
    margin-top: 50px;
}


.wrapper {
    width: 1170px;
    margin: auto;
}

.rowone {
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
}

.rowtwo {
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
}


.card {
    background: white;
    width: 300px;
    height: 400px;
    margin: 15px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card .description {
    font-size: 14px;
    padding: 0 15px;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

.card:hover {
    background-color: #d3d3d3;
    cursor: pointer;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-image1 .card-image2 {
    width: 400px;
    height: 320px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px;
    cursor: pointer;
}
.card h3 {
    padding: 10px;
    font-size: 32px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
    margin: 10px 0;
}

.card p {
    font-size: 16px;
    margin: 0 15px 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}

.card a {
    background-color: #385b4f;
    color: white;
    padding: 15px 20px;
    display: block;
    text-align: center;
    margin: 20px 50px;
    position: relative;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.card a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: .5s;
}

.card a:hover::before {
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}