/* <!--***********************************

Author: Terence Onyeweke
email: onyeweketerence@gmail.com 

************************************--> */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:
    "wdth" 100,
    "YTLC" 500;
}

:root {
    --primary: #002357;
    --secondary: #D1634A;
}


/* GENERAL CSS FOR THE TITLES AND SECTION CAPTIONS */

.head-box {
    display: flex;
    flex-direction: column;
}

.head-box .title{
    display: flex;
    align-items: baseline;
}
.head-box .title img{
    display: inline-block;
    /* height: 3px; */
    padding-bottom: 3px;
    margin-right: 10px;
}

.head-box h2 {
    font-size: 34px;
    font-weight: 600;
}

.head-box .title p {
    color: var(--primary);
}



 /*****************************************
  Hero Section
  *******************************************/
.hero {
    height: auto;
    /* background-image: url(../img/hero-img.png); */
    background-position: top !important;
    background-size: cover !important;
    background-position: center 20% !important;
    background-repeat: no-repeat !important;
    background: url(../img/poly\ hero.jpg);

    color: #fff;
    padding: 2rem 3rem 2rem 2rem;
    border-radius: 20px;
    background-repeat: no-repeat;
 }
.hero .hero-wrapper{
    position: relative;
}

 .hero h1{
    font-size: 50px;
    line-height: 68px;
 }

/* hero button animation and transition start */

 .tour {
    margin: 2rem 0 3rem;
}

.tour a {
    text-decoration: none;
}

.tour-btn {
    background-color: #fff;
    color: var(--primary);
    text-align: center;
    padding: 0.6rem 2rem;
    border-radius: 10px;
    white-space: nowrap; /* Prevent text wrapping */
    border: 2px solid var(--primary);
    font-size: 1rem;
    font-weight: bold;
    position: relative; /* For pseudo-elements */
    overflow: hidden; /* Ensure animations stay within button bounds */
    z-index: 1;
    cursor: pointer;
    transition: all 0.4s ease;
}

/* Add a ripple animation using pseudo-elements */
.tour-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--secondary);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}

.tour-btn:hover::before {
    width: 300%;
    height: 300%;
    opacity: 0;
}

/* Hover effects on the button itself */
.tour-btn:hover {
    color: #fff; /* Change text color */
    background-color: var(--secondary); /* Fill with primary color */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Create a hover shadow */
    transform: translateY(-5px); /* Lift the button */
    border-color: var(--secondary);
}

/* Active (pressed) state */
.tour-btn:active {
    transform: translateY(2px) scale(0.98); /* Slight press effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Reduced shadow */
}


/* hero buton effect stop */

 .hero .blur-content{
    width: fit-content;
    min-width: 75vw;
    margin: auto;
    padding-top: 1rem;
    background: linear-gradient(96.69deg,  0%, rgba(153, 153, 153, 0.28) 100%);
    backdrop-filter: blur(20px);
    border-radius: 17px;
    padding: .6rem 1rem;
    transform: translateY(90%) !important;
    margin-bottom: 7rem;
 }

 .hero .right-content-img{
    height: 100%;
 }

 .hero  .col-lg-6{
    /* height: 78vh; */
 }

 .hero .hero-box{
    position: absolute;
    bottom: -20rem;
    left: 1rem;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    column-gap: 1rem;
 }

 .hero .hero-box .box{
    background-color: #fff;
    color: var(--primary);
    border-radius: 20px;
    box-shadow: 0px 3px 25px 0px #0000001A;
    padding: 1rem;
 }

 .hero .hero-box .box h4{
    font-size: 23px;
    font-weight: 700;
 }

 .hero .hero-box .box a{
    text-decoration: underline;
 }
 .hero .hero-box .box p{
    min-height: 84.42px;
 }
 @media (max-width: 1200px){
    .hero {
        color: #fff;
        padding: 2rem 3rem 0 2rem;
        border-radius: 20px;
     }
     .hero  .col-lg-6{
        /* height: 84vh; */
     }

     .hero .blur-content{
        transform: translateY(-10%) !important;
     }
     .hero .hero-box{
        position: absolute;
        bottom: -16rem;
     }

     .about-section{
        margin-top: 20rem !important;
     }
 }

 @media (max-width: 991px){
    .hero {
        color: #fff;
        padding: 2rem .5rem 0 .5rem;
        border-radius: 20px;
     }
    .container.hero{
        border-radius: 0;
        width: 100% !important; 
        max-width: 100% ;
    }

    .hero {
        height: fit-content;
        padding-bottom: 0;
    }
    .hero .right-content-img{
        display: none !important;
    }
    .hero h1{
        width: 60%;
    }
    .hero .hero-box{
        position: absolute;
        bottom: -43rem;
        left: 1rem;
        display: grid;
        grid-template-columns: repeat(1,1fr);
        row-gap: 1rem;
     }

     .about-section{
        margin-top: 46rem !important;
     }
 }

 @media (max-width: 768px){
    .hero h1{
        font-size: 30px;
     }
     .hero .hero-box{
        position: absolute;
     }
     .hero .blur-content{
        transform: translate(0%, 20%);
     }
}
@media (max-width: 640px) { 
    .hero h1{
        line-height: 45px !important;
        font-weight: 700;
    }
}


 /*****************************************
  About Section
  *******************************************/
  .about-section{
    margin-top: 16rem;
    margin-bottom: 7rem;
 }
 .about-section .title {
    display: flex;
    align-items:baseline;
}

.about-section .title p{
    font-size: 18px;
}

.about-section .content h4{
    font-size: 30px;
    font-weight: 600;
}

.about-img{
    height: 400px;
    width: 100%;
    background-position: center !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background: linear-gradient(rgba(94, 91, 146, 0.8), rgb(0, 35, 87, 0.8)), url(../img/another-bg.png);
    border-radius: 20px;
    padding: 1rem;
    margin-top: 2rem;
}

.about-section .about-content-wrapper{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
	grid-gap: 1.5rem;
}

/* .about-section .about-img .box{
    background: linear-gradient(96.69deg, rgba(255, 255, 255, 0.371) 0%, rgba(153, 153, 153, 0.28) 100%);
    backdrop-filter: blur(20px);
    color: #fff;
    border-radius: 17px;
    padding: 1.5rem 1rem;
} */

/* fliping the small box on hover */


.about-content-wrapper .box {
     /* Set consistent width for each box */
    height: 150px; /* Set consistent height for each box */
    perspective: 1000px; /* Enable 3D perspective for flip animation */
    position: relative; /* For child positioning */
    cursor: move;
}

.about-content-wrapper .box-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d; /* Enable 3D transformation */
    transition: transform 0.6s ease; /* Smooth flip effect */
    /* padding: 1.5rem 1rem; */
}

.about-content-wrapper .box:hover .box-inner {
    transform: rotateY(180deg); /* Flip the box */
}

.about-content-wrapper .box-front,
.about-content-wrapper .box-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide the back when front is visible */
    border-radius: 10px;
    display: flex;
    flex-direction: column; /* Aligns text properly */
    justify-content: center; /* Centers content vertically */
    align-items: center; /* Centers content horizontally */
    color: #fff;
    font-size: 1rem;
    text-align: center;
    /* padding: 1rem; */
}

.about-content-wrapper .box-front {
    background: linear-gradient(96.69deg, rgba(255, 255, 255, 0.371) 0%, rgba(153, 153, 153, 0.28) 100%);
}

.about-content-wrapper .box-back {
    background: var(--secondary); /* Different background for back */
    transform: rotateY(180deg); /* Flip position for back side */
    border: 1.5px solid white;
}
.box-back {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* padding: 1rem; */
}

.box-back i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}




/* flippin ends */


.about-section .about-img .box p{
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .about-img{
        height: fit-content;
    }
    .about-section .about-content-wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 460px) {
    .about-section .about-img .box{
        padding: 1.5rem .5rem !important;
        margin-bottom: 1rem;
        text-align: center;
    }
    .about-section .about-img .box p{
        font-size: 14px;
    }
    .about-section .about-img .box h5{
        font-size: 1.1rem;
    }
}


 /*****************************************
  Our Program Section
  *******************************************/
.our-program-section{
    padding-bottom: 6rem;
}
.our-program-section .owl-dots {
    text-align: center;
    margin-top: 2rem;
}
.our-program-section .owl-dots .owl-dot {
    height: 5px;
    width: 20px;
    border-radius: 2px;
    background: #ccc !important;
    margin-left: 3px;
    margin-right: 3px;
    outline: none;
}
.our-program-section .owl-dots .owl-dot.active {
    background: #002357 !important;
}

.our-program-section .read-post span{
    text-decoration: underline;
}

.our-program-section .owl-nav button{
     display: none;                   
}




/* animation for owl carousel items */

/* Ensure items are centered and have some space */
.owl-carousel .item {
    position: relative;
    overflow: hidden;
    transition: transform 0.7s ease, box-shadow 0.3s ease;
}

.owl-carousel .item:hover {
    transform: translateY(-10px); /* Scales up the item */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Adds shadow effect on hover */
}



 
 
 /*****************************************
  Girl with head section styling 
  *******************************************/
 .background-section {
    background-image: url('../img/background-img.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: white;
    /* overflow-x: hidden; */
    
}

/* Text and button container styling */
.content-wrapper {
    width: 100%;
    /* z-index: 3; */
}

.content-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Button styling */
.content-wrapper .btn-custom {
    background-color: white;
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* Woman's image styling */
.woman-image {
    position: absolute;
    bottom: 0;
    left: 1%; /* Adjust as needed */
    
    height: auto;
    /* transform: translateY(10%); */
    /* z-index: 2; */
    width: 37%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-wrapper h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .background-section {
        flex-direction: column;
        align-items: right;
        text-align: right;
    }

    .background-section .content-wrapper{
        flex-direction: column;
    } 

    .woman-image {
         /* Adjust for smaller screens */
    }
}




/********************************************************
OUR TEAM SECTION
 *********************************************************/

 /* Container for the team member cards */
 .team-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-content: space-around;
    /* flex-wrap: wrap; */
    gap: 20px;
    margin-top: 30px;
}

/* Individual team card styling */
.team-card {
    /* background-color: #f8f9fa; */
    border-radius: 10px;
    overflow: hidden;
    max-width: 250px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    text-align: center;
    /* padding: 20px; */
    transition: transform 0.3s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-10px);
}

/* Profile picture styling */
.team-card img {
    width: 100%;
    /* width: 100px;
    height: 100px; */
    /* object-fit: contain; */
    border-radius: 10px; /* Ensures the image is circular */
    margin-bottom: 15px;
}

/* Name and position text styling */
.team-card h4 {
    margin: 0px 0 1px;
    font-size: 1.2rem;
    font-weight: bold;
}

.team-card p {
    font-size: 0.8rem;
    color: #6c757d;
}


@media (max-width: 756px){
    .team-container {
        
        grid-template-columns: 1fr 1fr;
        
    }
}



/* owl team style */

.team-container .owl-dots .owl-dot.active span {
    background-color: var(--secondary); /* Color when the dot is active */
}



/*****************************************************
 BLOG CSS 
 *****************************************************/
/* using owl carousel for structure */
/* blog image styling */
.blog-container{
    padding: 1rem;
}
.blog-container .blog-card{
    box-shadow: 0px 3px 25px 0px #0000001A;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 10px;
}
.blog-card > img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.blog-card p {
    font-size: 0.9rem;
    color: #6c757d;
}

.blog-card h4 {
    margin: 10px 0;
    font-size: 1.2rem;
    font-weight: bold;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
}

.blog .read-post {
    display: flex;
    align-items: center; /* Align the text and image on the same line */
    width: fit-content;
    cursor: pointer;
    color: var(--primary);
    white-space: nowrap; /* Prevents the text from wrapping */
}

.blog .read-post span {
    margin-right: 8px; /* Adds some space between text and the icon */
}

.blog .read-post img {
    width: 20px !important;
    height: 20px;
    margin-left: 10px; /* Adds a margin on the left of the icon */
    transition: transform 0.4s ease;
}

/* Hover effect */
.blog .read-post:hover img {
    transform: translateX(10px); /* Adjust the translation on hover */
}


/* owl navigation for the blog */
.blog .owl-nav {
    position: absolute;
    top: -50px; 
    right: 10px; 
    transform: translateY(-80%);
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 10px; 
    z-index: 2; 
}

.blog .owl-nav button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.blog .owl-nav button i {
   
    cursor: pointer;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 50%;
    color: var(--primary);
    background-color: white;
}

.blog .owl-nav button i:hover {
    background-color: var(--primary);
    color: white;
}




/* *********************************************
FAQ SECTIONS CSS
************************************************* */

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-card {
    border: 1px solid #ccc;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-card .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-card .faq-answer {
    display: none; /* Hidden by default */
    padding-top: 10px;
}

.faq-card.active .faq-answer {
    display: block;
    transition: height 0.3s ease;
}

.faq-card.active {
    background-color: var(--primary);
    color: white;
}

.faq-card .plus-sign {
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

/* Optional: For a nice transition effect */
.faq-card .faq-answer {
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease;
}

.faq-card.active .faq-answer {
    height: auto;
}

.faq-card.active .plus-sign {
    content: "\f068"; /* This is for the Font Awesome minus sign (fa-minus) */
    color: var(--secondary);
}





/*********************************************************
Contact Section
**********************************************************/

  .contact .my-email-form input[type=text],
  .contact .my-email-form input[type=email],
  .contact .my-email-form textarea {
    font-size: 14px;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: none;
    color: var(--default-color);
    
    border-color: color-mix(in srgb, var(--primary), transparent 50%);
  }
  
  .contact .my-email-form input[type=text]:focus,
  .contact .my-email-form input[type=email]:focus,
  .contact .my-email-form textarea:focus {
    border-color: var(--primary);
  }
  
  .contact .my-email-form input[type=text]::placeholder,
  .contact .my-email-form input[type=email]::placeholder,
  .contact .my-email-form textarea::placeholder {
    color: color-mix(in srgb, var(--primary), transparent 70%);
  }
  
  .contact .my-email-form button[type=submit] {
    color: white;
    background: var(--primary);
    border: 0;
    padding: 10px 30px;
    transition: 0.4s;
    border-radius: 10px;
  }
  
  .contact .my-email-form button[type=submit]:hover {
    background: color-mix(in srgb, var(--secondary), transparent 0%);
  }


  @media (max-width: 575px) {
    .contact .my-email-form {
      padding: 20px 0;
    }
  }


  .contact .info-wrap {
    padding: 30px;
    height: 100%;
  }
  
 
  .contact .contact-bg {
    /* background-image: url('../img/Registry-building.jpg'); */
    background: linear-gradient(rgba(94, 91, 146, 0.8), rgb(0, 35, 87, 0.8)), url(../img/Registry-building.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    min-height: 400px;
    color: white;
}
  
  .contact .info-item {
    margin-bottom: 40px;
  }
  
  .contact .info-item img {
    width: 16px;
    
    
   
    
    margin-right: 10px;
  }
  
  .contact .info-item h3 {
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .contact .info-item p {
    padding: 0;
    margin-bottom: 10px;
    font-size: 14px;
  }

  .contact .info-item .social {
    display: flex;
    column-gap: 10px;
  }

  .contact .info-item .social img,
  .contact .info-item .social i {
    width: 35px;
    height: 35px;

    padding: 10px;
    border: 1px solid white;
    border-radius: 50%;
    background-color: var(--primary);
    cursor: pointer;
    transform: scale(1);
  }
.contact .info-item .social img:hover,
.contact .info-item .social i  {
    background-color: var(--secondary);
    transform: scale(1.05);
    transition: transform background .2s ease;
}

  
@media (max-width: 575px) {
    .contact .info-wrap {
      padding: 20px;
    }
  }



