*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Fraunces', serif;
    color: white;
}

:root {
    --somali-blue: #0072c6;      /* Deep blue for Somali flag */
    --british-red: #c8102e;      /* Red for British flag */
    --british-white: #ffffff;    /* White for British flag */
    --british-blue: rgba(9,12,28,1);     /* Blue for British flag */
    --british-yellow: #f1c21b;   /* Yellow for British flag */
  
    --dark-gray: #333333;        /* Dark gray for text and borders */
    --light-gray: rgba(68,64,64,1);       /* Light gray for backgrounds */
  
    --table-other-colour: rgba(14,17,33,1);
}

  .header{
    background-image: url(assets/ali_background.51.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 1000px;
  }

  .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 926px;
    background: rgba(0, 0, 0, 0.79);
    margin-top: 75px;
}

.headerStatement {
    position: relative;
    bottom: 12%;
    max-width: 33%;
    left: 31%;
    transform: translateX(-122%);
    padding: 36px;
    margin-left: 10%;
    width: auto;
    color: var(--british-white);
}
  
  @media screen and (max-width: 450px) {
    .headerStatement{
        margin-left: 64px;
        font-size: 1.8rem;
    }

    .headerStatement{
        position: relative;
        bottom: 12%;
        max-width: 52%;
        left: 34%;
        transform: translateX(-59%);
        margin-left: 10%;
        color: var(--british-white);
        margin-top: 21%;
      }


  }

.logoNavContainer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 30px;
    z-index: 2;
    position: sticky;
}

.logoNavContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(0, 0, 0, 0.79);
    z-index: -1;
}

.logo{
    width: 100px;
    margin-left: 21px;
}

.headerNavList{
    list-style: none;
    flex-direction: row;
    display: flex;
    align-items: flex-end;
}

.headerNavList > li{
    padding: 0px 25px;
}

.headerNavList li a{
    color: var(--british-white);
    font-size: 1.1rem;
}

.headerNavList li a:hover,
.headerNavList li a.active {
    color: var(--british-white);
    padding: 0 2px 2px 0;

   border-bottom: 2px solid var(--british-white);
}


.hamburger{
    margin-left: 20px;
    cursor: pointer;
    display: none;
    /*Added to manage overlay of hamburger bar and nav menu*/
    z-index: 2;
}

.hamburger div {
    width: 30px;
    height: 2px;
    margin: 6px 0;
    background: var(--british-white);
}

/* media Q for hamburger/responsive nav bar*/

@media only screen and (max-width: 768px) {

    .logoNavContainer{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 20px 0;
        transition: opacity 0.3s ease; /* Smooth transition for fading */
        opacity: 1; /* Initially visible */
        z-index: 100; /* Ensures it's above */
    }


   .hamburger{
    display: block;
    margin-right: 21px;
   } 

   .headerNavList{
    margin: 0;
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
    height: auto;
    top: -250%;
    left: 0;
    width: 100%;
    padding: 30px;
    transition: 0.3s;
   }

   .headerNavList.active{
    opacity: 0.96;
    top: 70px;
    background-color: var(--british-blue);
   }

   .headerNavList li a{
    display: block;
    text-align: center;
    color: var(--british-white);
    font-size: 1.3rem;
    margin: 5px 0;
    padding: 10px 100px;
    transition: 0.2s;
   }


}

.about-container{
    background: var(--british-blue);
    border: var(--light-gray) solid 1px;
    padding: 7%;
}

.about-container>h1{
    padding: 1% 1%;
}

.about-class-container-element{
    padding: 1% 1%;
}

.about-elements-container{
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    padding-bottom: 2%;
}


.achievements-List{
    padding: 0% 3%;
}

.listAchievements{
    font-size: 1.5rem;
    background: var(--british-blue);
    padding: 4% 17%;
}

.listAchievements ul li {
    color: var(--british-white);
    display: list-item;
    list-style: disc; 
    padding-left: 20px;
}

.achievements-span-title{
    color: var(--british-white);
}

.achievements-span-title > h1{
    margin-bottom: 15px;
}

@media only screen and (max-width: 768px) {
    .achievements-span-title > h1{
        margin-top: 100px;
    }
}


.smallBio{
    padding: 4% 10%;
    background: var(--british-blue);
}

@media only screen and (max-width: 768px) {
    .achievementsContainer{
        min-width: 100%;
        padding: 0;
    }
}

.findOutMore{
    background: var(--somali-blue);
}

/*Articles Section*/
.articles{
    background: var(--british-blue);
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-end;

}

.article{
    padding: 5% 5%;
    max-width: 33%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.article>h2{
    padding: 15% 2%;
}

.article-thumbnails{
    max-width: 100%;
    height: auto;
    max-height: 199px;
}

.article-paras{
    padding: 15% 2%;
}

/* read-more button*/
.read-more {
    max-width: fit-content;
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--british-blue);
    color: white;
    text-decoration: none;
    border: 1px white solid;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 10%;
}


.read-more:hover {
    background-color: var(--british-white); /* Set a slightly darker color for hover */
    transform: scale(1.05); /* Add a slight scale effect on hover */
}


/* Gallery Styling */
.gallery-container {
    margin: 3% 3%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1000px;
    background-color: var(--british-blue);
}
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create 3 columns */
    grid-auto-rows: 200px; /* Each row's height */
    gap: 10%;
}
.item {
    position: relative;
    overflow: hidden;
}
.item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s;
    padding: 0% 8%;
}
.item:hover img {
    transform: scale(1.1);
}

/*Table*/

.table {
    border-collapse: collapse;
    width: 100%;
}

.table th, .table td {
    border: 1px solid var(--light-gray);
    padding: 10px;
    text-align: center;
}

.events-table{
    background: var(--british-blue);
    padding: 3% 13%;
    padding-bottom: 9%;
}

.events-table>h1{
    padding-top: 3%;
    padding-bottom: 3%;
}

.every-other-row{
    background: var(--table-other-colour);
}

.register-links{
    text-decoration: revert;
    color: var(--somali-blue);
}

.lesson-schedule, .coaching{
    background: var(--british-blue);
}

.lesson-subheaders{
    padding-bottom: 10px;
}

.lesson-schedule>h1{
    padding-top: 3%;
    padding-bottom: 1%;
    padding-left: 3%;
}

.lesson-container{
    display: flex;
    padding: 1% 1%;
    flex-direction: row;
}

@media screen and (max-width: 440px) {

    .lesson-container{
        flex-direction: column;
    }

}


.lesson-element{
    margin: 4% 4%;

}

.coaching>h1{
    padding-top: 3%;
    padding-bottom: 1%;
    padding-left: 3%;
}

.coaching-experience-container{
    display: flex;
}

.coaching-element{
    padding: 3% 3%;
    background: rgba(29,35,68);
    margin: 2% 2%;
    border-radius: 6%;
    width: 33.33%;
}

/*blog*/
.blog >h1{
    padding-top: 3%;
    padding-bottom: 1%;
    padding-left: 3%;
    background: var(--british-blue);
}

/*promotion */
.promotion{
    padding: 1% 3%;
    background: var(--british-blue);
}

.promotion h1{
    padding: 1% 3%;
}

.promotion p{
    padding: 1% 3%;
}

/* Footer styles */
footer {
   /* background-image: url(/assets/background-footer.jpg); */
    background-color: rgba(29,35,68);
    color: (var(--british-white));
    padding: 20px;
    text-align: center;
}

/* Footer link styles */
footer a {
    color: #fff;
    text-decoration: none;
}

/* Social media icons */
.social-icons {
    list-style: none;
    padding: 0;
    padding: 1% 3%;

}

.social-icons li {
    display: inline;
    margin-right: 10px;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
}












@media screen and (max-width: 750px){
    .about-elements-container{
        flex-direction: column;
        margin-top: 10px;
    }

    .articles{
        flex-direction: column !important;

    }

    .article{
        max-width: 100% !important;
    }

    .article-paras{
        padding: 0% !important;
        padding-top: 1% !important;
    }

    .read-more{
        margin-left: 197px !important;
    }

    .gallery-container{
        height: 830px !important;
    }

    .gallery{
        grid-template-columns: repeat(2, 2fr) !important;
        grid-auto-rows: 200px !important;
        gap: 1% !important;
        padding-bottom: 76px !important;
    }

    .last-item{
        display: none !important;
    }

    .coaching{
        padding: 3% 7% 
    }

    .coaching>h1, .coaching-element{
        padding-bottom: 3%;
    }

    .coaching-element{
        width: 97%;
    }

    .coaching-experience-container{
        flex-direction: column;
    }

    .coaching>h1{
        padding: 20px 0px;
    }

    .events-table{
        padding: 3% 0%;
    }

    .events-table>h1{
        padding-bottom: 22px;
        padding-left: 38px;
    }

    .table{
        width: 0;

    }

    .lesson-schedule{
        padding: 1% 5%;
    }

    .lesson-schedule>h1{
        padding-bottom: 4%;
    }

    .lesson-element{
        padding-bottom: 4%;
    }

    .blog{
        margin-top: 11%;
    }

}

/*Achievements Page*/
.header-non-home-page{
min-height: 10% !important;
background-image: none;
background: var(--table-other-colour);
}

.header-non-home-page::before{
    background: none;
    margin-top: 0%;
    display: none;
}

/*About Me*/
.page-heading{
    background: var(--british-blue);
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: flex-end;
    padding: 2%;
    font-size: 2rem;
}

.about-me-container{
    background: var(--british-blue);
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}


.about-me-section{
    display: flex;
    flex-direction: row;
    margin: 7% 2%;
    justify-content: center;
    align-items: center;
}

.about-me-image{
    max-width: 43%;
    height: 1%;
}

.about-me-paragraph{
    padding: 10%;
    font-size: 1.7rem;
}

.about-me-interests-heading{
font-size: 2.5rem;
}

@media only screen and (max-width: 768px) {
    .about-me-container{
        margin-top: 31px;
    }

    .about-me-section{
        flex-direction: column !important;
        align-items: center;
    }

   /* .about-me-image{
        
    }*/
}



/*Contact Form*/
.contact-form-container{
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

.contact-form {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 542px;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #333333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.form-group textarea {
    height: 150px;
    color: black;
}

.form-group .error-message {
    color: var(--british-red);
}

.form-group .success-message {
    color: var(--dark-gray);
    color: #00cc00;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.submit-button-contact{
    display: flex;
    flex-direction: row-reverse;

}

.form-group button {
    background-color: rgba(29,35,68);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
}

.form-group button:hover {
    background-color: rgba(29,35,68,0.7);
}
