* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
}


/* Header Start */
header {
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    padding: 20px;
    background-color: #3b5998;
    position: relative;
}

.logo-img {
    width: 250px;
    height: auto;
    border-radius: 10%;
    z-index: 10;
    position: relative;

}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

/* Nav Start*/
nav {
    margin-top: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    display: block;
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    font-size: 1rem;
    color: #ffff;
    font-weight: 600;
}

nav ul li a:hover {
    color: black;
}

/* Dropdown Styling */
nav ul li ul.dropdown {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    background-color: #f8f9fa;
    padding: 0;
    list-style: none;
    min-width: 150px;
    z-index: 10;
}

nav ul li ul.dropdown li {
    display: block;
    margin: 0;
}

nav ul li ul.dropdown li a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    color: #333;
    background-color: #f8f9fa;
}

nav ul li ul.dropdown li a:hover {
    background-color: #007bff;
    color: #fff;
}

nav ul li:hover ul.dropdown {
    display: block;
}

@media(max-width: 768px) {
    header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
    }

    .logo-img {
        width: 150px;
        margin-bottom: 0;
        align-self: flex-start;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #3b5998;
        padding: 0;
        margin: 0;
        border-radius: 5px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        background-color: #3b5998;
        padding: 0;
        margin: 0;
        border-radius: 5px;
    }

    nav ul li {
        text-align: center;
        margin: 10px 0;
    }

    nav ul li a {
        padding: 15px 20px;
        font-size: 1.2rem;
        color: white;
        text-decoration: none;
        display: block;
    }

    nav ul li a:hover {
        background-color: #007bff;
        color: white;
    }

    nav ul li ul.dropdown {
        position: static;
        display: none;
        background-color: #f8f9fa;
        border-radius: 5px;
        margin-top: 5px;
        width: 100%;
    }

    nav ul li:hover ul.dropdown {
        display: block;
    }

    nav ul li ul.dropdown li {
        text-align: center;
    }

    nav ul li ul.dropdown li a {
        padding: 10px 20px;
        font-size: 1rem;
        color: black;
    }

    .menu-toggle {
        display: flex;
        cursor: pointer;
        flex-direction: column;
        margin-left: auto;
        padding: 10px;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
    }

    .menu-toggle.active+nav ul {
        display: flex;
    }
}

/** Header End **/



/* Home Section Start */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
    animation: slider 15s infinite;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    position: absolute;
}

/*Keyframes for the slideshow*/
@keyframes slider {
    0% {
        background-image: url('images/20190904_141641.jpg');
    }

    33% {
        background-image: url('images/20190904_141800.jpg');
    }

    66% {
        background-image: url('images/20200320_145210.jpg');
    }

    100% {
        background-image: url('images/20210223_114924.jpg');
    }
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    margin: 0 10px;
}

.btn-primary {
    background-color: #ff4d4d;
}

.btn-primary:hover {
    background-color: #ff1a1a;
}

.btn-secondary {
    background-color: #1a75ff;
}

.btn-secondary:hover {
    background-color: #0040ff;
}

@media(max-width:768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: .8rem;
    }

    .btn {
        font-size: .8rem;
    }
}

/* Home Section End */



/* Who are we Start */
#who-are-we {
    padding: 40px;
    background-color: #f4f4f4;
}

.who-are-we-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.who-are-we-image {
    flex: 1;
    overflow: hidden;
}

.who-are-we-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: 0.5s ease;
    opacity: 80%;
}

.who-are-we-image:hover {
    transform: scale(0.5);
}

.who-are-we-text {
    width: 90%;
    padding-left: 20px;
    flex: 1;
}

.who-are-we-text h1 {
    color: #333;
    margin-bottom: 10px;
}

.who-are-we-text p {
    color: #666;
}

@media(max-width: 768px) {
    .who-are-we-content {
        flex-direction: column;
        align-items: center;
    }

    .who-are-we-image,
    .who-are-we-text {
        width: 100%;
        padding-left: 0;
    }

    .who-are-we-text h1 {
        margin-bottom: 10px;
        margin-top: 10px;
    }

}

/* Who are we End */


/* What we do Start */
#what-we-do {
    padding: 40px;
    background-color: #ffff;
}

.what-we-do-content {
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.what-we-do-content h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    padding-bottom: 20px;
    /* border-bottom: 3px solid #ff1a1a;*/
}

.what-we-do-content h1::after {
    content: "";
    display: block;
    width: 150px;
    height: 4px;
    background-color: #ff1a1a;
    margin: 0 auto;
    animation: expand-line 2s infinite;
}

@keyframes expand-line {

    0%,
    100% {
        width: 150px;
    }

    50% {
        width: 250px;
    }
}

.what-we-do-content p {
    padding-bottom: 20px;
}

.what-we-do-text {
    font-size: 18px;
}

.programs .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.card {
    position: relative;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc(33.333% -20px);
    flex: 1 1 calc(33.333% - 20px);
    cursor: pointer;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.athletics::before {
    background-image: url('images/atlhetics.jpeg');
}

.soccer::before {
    background-image: url('images/20200320_145223.jpg');
}

.netball::before {
    background-image: url('images/20201017_074557.jpg');
}

.indigenous-games::before {
    background-image: url('images/indigenous.jpeg');
}

.cycling::before {
    background-image: url('images/cy2.jpg');
}

.volleyball::before {
    background-image: url('images/vollye.jpeg');
}

.card:hover::before {
    opacity: 0.8;
}

.card h3 {
    font-size: 1.5rem;
    color: #333;
    position: relative;
    z-index: 2;
}

.card p {
    position: relative;
    z-index: 2;
}

@media(max-width: 768px) {
    .card {
        width: calc(50% -20px);
        flex: 1 1 calc(50% - 20px)
    }

    .what-we-do-text {
        font-size: 14px;
    }

    .what-we-do-content h1 {
        font-size: 2rem;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 14px;
    }

}

@media(max-width: 480px) {
    .card {
        width: 100%;
        flex: 1 1 100%;
    }
}

/* What we do End */



/* Contact Us Start */
#contact-us {
    background-color: #3b5998;
    padding: 60px 20px;
    color: #fff;
    text-align: center;
}

#contact-us form {
    max-width: 600px;
    margin: auto;
}

#contact-us h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

#contact-us input[type="text"],
#contact-us textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
}

#contact-us textarea {
    height: 100px;
}

#contact-us input[type="submit"] {
    background-color: #ff5722;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#contact-us input[type="submit"]:hover {
    background-color: #e64a19;
}

.contact-container h4 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.contact-info-message {
    font-size: 18px;
}

@media(max-width:768px) {
    .contact-info-message {
        font-size: 14px;
    }

    #contact-us h1 {
        font-size: 30px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

}

/* Contatc Us End */


/* Purpose Section  Start*/
.purpose-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.section-title {
    font-size: 40px;
    color: #333;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    width: 100px;
    height: 4px;
    background-color: #ff1a1a;
    display: block;
    margin: 10px auto 0;
}

.icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.purpose-icon {
    width: 60px;
    height: 60px;
}

.purpose-heading {
    font-size: 28px;
    color: #ff1a1a;
    margin-bottom: 15px;
}

.purpose-text {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 700px;
}

/* Dot Styling */
.dot-container {
    margin-top: 20px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: #ff1a1a;
}

/* styles for navigation buttons on "our purpose" section*/
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: blue;
    font-weight: bold;
    font-size: 18px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slideshow-container {
    position: relative;
}

@media(max-width:768px) {
    .section-title {
        font-size: 2rem;
    }

    .purpose-heading {
        font-size: 20px;
    }

    .purpose-text {
        font-size: 14px;
    }

    .prev,
    .next {
        padding: 12px;
        margin-top: -33px;
        font-size: 15px;
    }
}

/* Purpose Section End */


/* Education Program Start */
.edu-content {
    background-color: #f4f4f4;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 20px;
}

.edu-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    cursor: pointer;
}

.edu-content h2::after {
    content: "";
    display: block;
    width: 150px;
    height: 4px;
    background-color: #ff1a1a;
    margin: 0 auto;
    animation: expand-line 2s infinite;
}

@keyframes expand-line {

    0%,
    100% {
        width: 150px;
    }

    50% {
        width: 250px;
    }
}

ul li {
    margin-bottom: 15px;
}

ul li i {
    margin-right: 10px;
}

.edu-text ul {
    margin-top: 20px;
    margin-bottom: 10px;
    display: grid;
}

.edu-text ul li {
    list-style: none;
    font-size: 0.8rem;
}

.edu-text p {
    font-size: 18px;
}

.edu-images {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    align-items: center;
    transition: transform 0.3s;
    gap: 20px;
}

.edu-images img {
    width: 60%;
    height: auto;
    max-height: 300px;
    border-radius: 10px;
    object-fit: cover;

}

.left-image {
    float: left;
}

.right-image {
    float: right;
}

.edu-images img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

@media(max-width:768px) {
    .edu-images {
        flex-direction: column;
        align-items: center;
    }

    .edu-images img {
        width: 100%;
        margin-bottom: 20px;
    }

    .edu-content h2 {
        font-size: 2rem;
    }

    .edu-text p {
        font-size: 15px;
    }

    .edu-text ul li {
        font-size: 0.7rem;
    }

}

/* Circular Elements Container */
.education-circles {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    cursor: pointer;
}

.circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 2px solid #007bff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px;
    transition: transform 0.3s;
}

.circle:hover {
    transform: scale(1.05);
}

.circle h3 {
    margin: 5px 0;
    font-size: 16px;
}

.circle p {
    font-size: 12px;
    text-align: center;
    padding: 0 10px;
}

.circle i {
    color: #007bff;
    font-size: 30px;
    margin-bottom: 10px;
}

/* Education Program End */


/* Back-to-top button start */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 1000;
    border: none;
    outline: none;
    background-color: #007bff;
    color: white;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
}

#back-to-top:hover {
    background-color: #0056b3;
}

/* Back-to-top button end */


/* Footer Start*/
.footer {
    background-color: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 600px) {
    .footer p {
        font-size: 14px;
        padding: 10px;
    }
}

/* Footer End */