@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;400;500&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

 /* ===== Colours ===== */
 :root{
    --primary: #f1008c;
    --primary-hover: #CD7D7C;                
    --background: #3971a2;
    --white:#fff;
    --navbar-height: 60px;
 }

 
body{
scroll-behavior: smooth;
transition: 0.3s ease;
}

header{
    background-image:linear-gradient(to bottom, var(--primary), var(--background)), url(islamic-background-3486257_1920.jpg);
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      height: 40vh;
      padding: 50px 0px;
  }
  header .header-title,
  header .contact-link{
    text-align: center;
  }
  header .header-title{
    margin-bottom: 30px;
    color: var(--white);
    text-transform: uppercase;
  }
  header .contact-link p{
    font-style: italic;
    font-weight: bold;
  }
  header .contact-link p a{
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
  }
  header .contact-link p a:hover{
    color: var(--background);
  }

  .course-title{
    text-align: center;
    font-size: 2.1rem;
    margin-block: 3rem;
  }
  @media screen and (max-width: 860px){
    .course-title{
      font-size: 1.8rem;
    }
  }
  .articles {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: center;
    max-width: 1200px;
    gap: 1.5rem;
    margin-block: 5rem;
}

.articles article {
    max-width: 320px;
    width: 100%;
    cursor: pointer;
    position: relative;
    display: block;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.articles article h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
    color: var(--text);
    transition: color 0.3s ease-out;
}


.articles article img {
    max-width: 100%;
    transform-origin: center;
    transition: transform 0.4s ease-in-out;
    height: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    object-fit: cover;
}

.articles article:hover img {
    transform: scale(1.5);
}

.article-preview {
    padding: 1.5rem;
    background: white;
}

.articles figure {
    width: 100%;
    height: 14rem;
    overflow: hidden;
}

article a button{
    border-radius: 4px;
    background-color: var(--background);
    border: none;
    color: #FFFFFF;
    text-align: center;
    font-size: 15px;
    padding: 15px;
    width: 150px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 10px 0px;
  }
  
  article a button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
  }
  
  article a button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
  }
  
  article a button:hover span {
    padding-right: 25px;
  }
  
  article a button:hover span:after {
    opacity: 1;
    right: 0;
  }

.reminder-section{
  margin: 5rem auto;
  text-align: center;
  background-color: var(--background);
  max-width: 1230px;
  padding: 12px;
  color: var(--white);
  line-height: 1.3;
}


  .program-container{
    width: 100%;
   background-image: linear-gradient(to bottom, rgba(223, 223, 223, 0.52), var(--primary)), url(24696734_islamic_ramadan_background.jpg);
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;
    height: 51vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4rem;
    padding: 10px 20px;
}

.program-img{
    width: 50%;
   margin-top: -5em;
}
.program-details{
    width: 50%;
}
.program-details .program-content:not(:last-child){
    margin-bottom: 2rem;
}
.program-details .program-content .title{
    font-size: 2.1em;
    margin-bottom: 10px;

}
.program-details p{
    color: var(--white);
    line-height: 1.3;
    display: flex;
    justify-content: start;
    gap: 10px;
    align-items: center;
}
.program-details p i{
    color: var(--background);
    font-size: 1.3rem;
}

@media screen and (max-width: 1024px){
    .program-container{
        height: 55vh;
        justify-content: space-between;
        align-items: center;
        overflow: hidden;
    }
}
@media screen and (max-width: 860px){
    .program-container{
        height: 35vh;
        justify-content: space-between;
        align-items: center;
      overflow: hidden;
    }
    .program-img{
        width: 50%;
       margin-top: -5em;
    }
    .program-details{
        width: 50%;
    }
  }

  @media screen and (max-width: 600px){
    .program-img{
        display: none;
      }
      .program-details .program-content .title{
        font-size: 1em;
        margin-bottom: 10px;
    }
    .program-details p{
       font-size: 12px;
    }
  }

  @media screen and (max-width: 450px){
    .program-container{
        height: 40vh;
        justify-content: center;
    align-items: center;
       flex-direction: column;
       padding: 10px;
    }
    .program-img{
       display: none;
     }
  }
  
  @media screen and (max-width: 390px){
    .program-details .program-content .title{
        font-size: 1em;
        margin-bottom: 10px;
    }
    .program-details p{
       font-size: 12px;
    }
  }

  .regitration-section{
    margin-block: 5em;
}
.regitration-section .registration-box{
    text-align: center;
}
.regitration-section .registration-box .reg-title{
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 10px;
}
.regitration-section .registration-box p{
    max-width: 440px;
    margin: 10px auto;
}
.regitration-section .registration-box  a button{
    border-radius: 4px;
    background-color: var(--primary);
    border: none;
    color: #FFFFFF;
    text-align: center;
    font-size: 15px;
    padding: 20px;
    width: 200px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;
  }
  
  .registration-box a button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
  }
  
  .registration-box a button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
  }
  
  .registration-box a button:hover span {
    padding-right: 25px;
  }
  
  .registration-box a button:hover span:after {
    opacity: 1;
    right: 0;
  }
  .registration-box .modBox{
    text-align: center;
    display: block;
    line-height: 1.4;
  }
  .registration-box .modBox p{
    color: var(--primary);
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
  }