body{
    background-color: rgb(63, 20, 164);
}

#intro {
    width: 100%;
    height: 350px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5),
                                      rgba(0, 0, 0, 0.5)),
                      url("../images/works.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

#intro h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

#intro p {
    color: #f1f5f9;
    font-size: 1.2rem;
    max-width: 700px;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}


#places{
    width:90%;
    margin:60px auto;
    display:flex;
    justify-content:space-between;
    gap:30px;
}

.topic{
    position:relative;
    width:33%;
    height:450px;
    border-radius:18px;
    overflow:hidden;
    background-size:cover;
    background-position:center;
    transition:0.5s ease;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.topic1{
    background-image:url("../images/education\ service.jpg");
}

.topic2{
    background-image:url("../images/hospital\ care.jpg");
}

.topic3{
    background-image:url("../images/outreach\ service.jpg")
}

.overlay{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:100%;
    background:linear-gradient(to top,
            rgba(0,0,0,.9),
            rgba(0,0,0,.2),
            transparent);
    color:white;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:30px;
    transition:0.5s;
}

.overlay h2{
    font-size:2rem;
    margin-bottom:15px;
    font-family:Georgia, serif;
}

.overlay p{
    font-size:1rem;
    line-height:1.7;
    margin-bottom:25px;
}

.overlay a{
    display:inline-block;
    width:150px;
    text-align:center;
    text-decoration:none;
    background:#FFD700;
    color:#222;
    padding:12px 20px;
    border-radius:30px;
    font-weight:bold;
    transition:.3s;
}

.overlay a:hover{
    background:#ffffff;
    color:#0056b3;
}

.topic:hover{
    transform:translateY(-10px);
    box-shadow:0 18px 40px rgba(0,0,0,.4);
}

.topic:hover .overlay{
    background:linear-gradient(to top,
            rgba(0,0,0,.95),
            rgba(0,0,0,.5),
            rgba(0,0,0,.2));
}
#colors{
    width:90%;
    margin:70px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(400px,1fr));
    gap:35px;
}

.many1,
.many2{
    position:relative;
    height:450px;
    border-radius:20px;
    overflow:hidden;
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:flex-end;
    box-shadow:0 15px 35px rgba(0,0,0,.2);
    transition:.5s;
}

.many1{
    background-image:url("../images/St-vincent-de-Paul.png");
}
.many1:hover,
.many2:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 45px rgba(0,0,0,.35);
}

.overlay{
    width:100%;
    padding:35px;
    background:linear-gradient(to top,
    rgba(0,0,0,.85),
    rgba(0,0,0,.25),
    transparent);
    color:white;
}

.overlay h2{
    font-size:32px;
    margin-bottom:15px;
}

.overlay p{
    font-size:17px;
    line-height:1.7;
    margin-bottom:25px;
}

.overlay a{
    display:inline-block;
    padding:12px 28px;
    background:#0056b3;
    color:white;
    text-decoration:none;
    border-radius:40px;
    font-weight:600;
    transition:.3s;
}

.overlay a:hover{
    background:#ff9800;
}


@media(max-width:900px){

}
/* =========================
        GALLERY
========================= */

.gallery{
    width:90%;
    max-width:1400px;
    margin:70px auto;

    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:30px;
}

/* Images */

.gallery img{
    width:380px;
    height:260px;

    object-fit:cover;

    border-radius:18px;

    cursor:pointer;

    border:6px solid #fff;

    box-shadow:0 12px 30px rgba(0,0,0,.15);

    transition:all .5s ease;
   background-image: url("../images/rue-du-bac-featured.jpg"); 
}
  
/* ===========================
      ACTIVITIES SECTION
=========================== */

#apostolates{
    width:85%;
    max-width:1000px;
    margin:70px auto;
    text-align:center;
    padding:30px;
    background:#ffffff;
    border-radius:20px;
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

/* Heading */

#apostolates h3{
    font-size:35px;
    color:#003366;
    margin-bottom:30px;
    font-weight:bold;
    text-transform:uppercase;
    letter-spacing:2px;
    position:relative;
}

#apostolates h3::after{
    content:"";
    width:90px;
    height:4px;
    background:#f4b400;
    display:block;
    margin:12px auto;
    border-radius:20px;
}


table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:15px;
}


th{
    background:linear-gradient(135deg,#0056b3,#007BFF);
    color:white;
    padding:18px;
    font-size:18px;
    text-transform:uppercase;
    letter-spacing:1px;
}

td{
    padding:18px;
    font-size:17px;
    color:#444;
    background:#fff;
    border-bottom:1px solid #e5e5e5;
    transition:0.4s;
}


tr:nth-child(even){
    background:#f8fbff;
}


tr:hover td{
    background:#eaf4ff;
    color:#0056b3;
    font-weight:bold;
    transform:scale(1.02);
}


th:first-child{
    border-top-left-radius:15px;
}

th:last-child{
    border-top-right-radius:15px;
}


@media(max-width:768px){
}
#apostolates{
    width:95%;
    padding:20px;
}

#apostolates h3{
    font-size:28px;
}

th,
td{
    padding:12px;
    font-size:15px;
}
.hero-video{
    position:relative;
    height:100vh;
    overflow:hidden;
}

.hero-video video{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-content{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    text-align:center;
    color:white;
    z-index:2;
}

.hero-video::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
}
#footer{
    width:100%;
    background:linear-gradient(135deg,#002147,#003f7d,#0056b3);
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:40px;
    padding:70px 8%;
    color:#fff;
}


.footer1,
.footer2,
.footer3,
.footer4{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(12px);
    border-radius:18px;
    padding:25px;
    transition:.5s;
    border:1px solid rgba(255,255,255,.15);
}

.footer1:hover,
.footer2:hover,
.footer3:hover,
.footer4:hover{
    transform:translateY(-12px);
    box-shadow:0 20px 40px rgba(0,0,0,.35);
}


#footer h1,
#footer h2{
    font-size:24px;
    margin-bottom:20px;
    position:relative;
    color:#fff;
}

#footer h1::after,
#footer h2::after{
    content:"";
    width:60px;
    height:4px;
    background:#ffb703;
    position:absolute;
    left:0;
    bottom:-10px;
    border-radius:10px;
}

.footer1 h3{
    margin-top:15px;
    color:#ddd;
    font-weight:400;
}


.footer1 img{
    width:110px;
    margin-top:25px;
    transition:.5s;
}

.footer1 img:hover{
    transform:rotate(360deg) scale(1.1);
}


.footer2 ul,
.footer3 ul{
    list-style:none;
}

.footer2 li{
    margin:18px 0;
}

.footer2 a{
    color:#fff;
    text-decoration:none;
    transition:.4s;
    font-size:17px;
}

.footer2 a:hover{
    color:#ffb703;
    padding-left:12px;
}


.footer3 img{
    width:24px;
    margin-right:12px;
    vertical-align:middle;
    transition:.4s;
}

.footer3 img:hover{
    transform:scale(1.3);
}

.footer3 p{
    margin-top:15px;
    color:#ddd;
    line-height:1.7;
}


.footer4 a{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:55px;
    height:55px;
    margin:10px;
    background:white;
    border-radius:50%;
    transition:.4s;
    box-shadow:0 10px 20px rgba(0,0,0,.2);
}

.footer4 img{
    width:28px;
}

.footer4 a:hover{
    transform:translateY(-8px) rotate(360deg);
    background:#ffb703;
}


footer{
    background:#00152d;
    color:#ddd;
    text-align:center;
    padding:20px;
    font-size:15px;
    letter-spacing:1px;
}


@media(max-width:900px){
}

#footer{
    grid-template-columns:1fr;
    text-align:center;
}

#footer h1::after,
#footer h2::after{
    left:50%;
    transform:translateX(-50%);
}

.footer4 a{
    margin:8px;
}

