@charset "utf-8";

@media screen and (max-width: 414px) {
    html {
        /* width: 414px; */
        overflow-x: hidden;
        scroll-behavior: smooth !important;
    }
}


button {
    border: none;
    outline: none;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.header {
    height: auto;
    padding: 10px 0;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    font-family: Lato;
    font-weight: 100;
    font-size: 20px;
    line-height: 0.1;
    border-bottom: solid;
}

.header h1 {
    font-size: 2rem;
    color: #444;
    top: 50%; 
    left: 50%;
    transform: translate(10%, -100%); 
    width: 225px;
    cursor: pointer;
}

.header a {
    cursor: default;
}

.searchbar input[type=text] {
    float: right;
    padding: 6px;
    border: none;
    margin-top: -42px;
    margin-right: 60px;
    font-size: 17px;
}

.searchbar button {
    float: right;
    padding: 6px 10px;
    margin-top: -42px;
    margin-right: 20px;
    background: #ddd;
    font-size: 17px;
    border: none;
    cursor: pointer;
}

/* Navigation Bar */
.nav-bar {
    background-color: #333;
    overflow: hidden;
    flex-wrap: wrap;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.nav-bar a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 9px 16px;
    text-decoration: none;
    width: 23.32%;
    font-size: 17px;
} 

.nav-bar a:hover {
    background-color: #ddd;
    color: black;
}

.nav-link.active {
    background-color: #04aa6d;
    color: white;
}

#navbar .icon {
    display: none;
    cursor: pointer;
    float: right;
    padding: 6px;
    border: none;
    margin-top: -35px;
    margin-right: 20px;
    font-size: 17px;
    z-index: 1001;
}

#navbar.responsive.icon {
    visibility: visible;
}

@media screen and (max-width: 414px) {
    #navbar .nav-bar a, .searchbar {
        display: none;
    }

    #navbar .icon {
        display: block;
        visibility: visible;
    }

    #navbar.responsive {
        flex-direction: column;
        align-items: flex-start;
        visibility: visible;
    }

    #navbar.responsive a.icon {
        visibility: visible;
    }

    #navbar.responsive .nav-bar a {
        display: block;
        width: 100%;
    }

    .header {
        height: 50px;
    }
}

.section {
    height: 100vh;
    scroll-margin-top: 60px;
}

.imagebox {
    height: 600px;
    width: 100%;
    position: relative;
    background: no-repeat center;
    background-size: cover;
    background-image: url(../images/about_image.jpg);
}

.top-page-center-text {
    color: white;
    padding: 100px 0px 0px 0px;
    line-height: 1;
    font-size: 50px;
    margin-left: 15px;
}

.subtitle {
    font-size: 25px;
    line-height: 30px;
    font-family: Arial;
}

.read-more-button a { 
    background-color: #d11619;
    color: white;
    border-radius: 5px;
    border: 10px solid;
    border-color: #d11619;
    font-size: 20px;
    font-family: Arial;
    width: 150px;
    text-decoration: none;
}

@media screen and (max-width: 414px) {
    .top-page-center-text {
        margin-top: -30%;
        line-height: 100%;
    }

    .subtitle p {
        line-height: 25px;
    }
}

#about {
    height: 400px;
    margin-left: 15px;
}

#about p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
    max-width: 1300px;
}

@media screen and (max-width: 414px) {
    #about {
        height: 800px;
    }   
}

#ourTeam {
    height: 700px;
}

#ourTeam h1 {
    margin-left: 15px;
}

.teamText {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 0 15px;
}

.teamText p {
    flex: 1;
    max-width: 20%;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

@media screen and (max-width: 414px) {
    #ourTeam{
        height: 900px;
    }

    .teamText p {
        max-width: 414px;
    }
}

.carousel-container {
    max-width: 1000px;
    margin-left: 800px;
    margin-top: -300px;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: "transform 0.4s ease-in-out";
}

.profile-card {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 600px) {
    .profile-card {
        flex: 0 0 90%;
        max-width: 90%;
        margin-right: 10px;
        box-sizing: border-box;
    }
}

@media (min-width: 900px) {
    .profile-card {
        flex: 0 0 45%;
        max-width: 45%;
        margin-right: 5%;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 414px) {
    .carousel-container {
        margin-left: 0%;
    }
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    position: relative;
    background: no-repeat center;
    
}

@media screen and (max-width: 900px) {
    .profile-card {
        margin-left: 30px;
    }

    .card img {
        height: 300px; 
        background-size: cover;
    }
}

@media screen and (max-width: 414px) {
    .profile-card {
        margin-left: 0px;
    }

    .card img {
        height: 300px; 
        background-size: cover;
    }
}

.card h3{
    margin: 15px 0 5px;
    text-align: center;
}

.card p{
    font-size: 14px;
    color: #555;
}

.card .role{
    font-weight: bold;
    color: #888;
    text-align: center;
}

.carousel-buttons {
    text-align: center;
    margin-top: 20px;
}

.carousel-buttons button {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    background: #333;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.carousel-buttons button:hover {
    background: #555;
}


#jobs {
    height: 975px;
}

.job-card {
    flex: 0 0 100%;
    width: 800px;
    box-sizing: border-box;
    padding: 20px;
    float: left;
    margin-left: 100px;
}

@media screen and (max-width: 414px) {
    .job-card {
        max-width: 414px;
    }
}

.card .job_role {
    font-weight: bold;
    color: #4d4d4d;
}

.apply-button {
    margin-top: 20px;   
}

.btn-apply {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    background: red;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-apply:hover {
    background: rgb(255, 76, 76)
}

.overlay-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-box {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    width: 320px;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInUp 0.5s ease-out forwards;
}

.form-container {
    display: flex;
    flex-direction: column;
}

.form-section input {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

#submitBtn, #closeBtn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#submitBtn {
    background: green;
    color: #fff;
}

#closeBtn {
    background: red;
    color: #fff;
}

#submitBtn:hover {
    background-color: #4caf50;
}

#closeBtn:hover {
    background: rgb(255, 100, 100);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overlay-container.show {
    display: flex;
    opacity: 1;
}

@media screen and (max-width: 1815px) {
    #jobs {
        height: 950px;
    }
    .job-card {
        margin-left: 0%;
        width: 800px;
    }
}

@media screen and (max-width: 414px) {
    #jobs {
        height: 1700px;
    }

    .job-card {
        margin-left: 0%;
        width: 750px;
    }
}

#courses {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    height: 750px;
}

@media screen and (max-width: 414px) {
    #courses {
        height: 1000px;
        display: block;
    }

    .course-card {
        width: 300px;
        margin-top: 100px;
        margin-right: 1000px;
    }
}

.course-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-left: -10%;
    display: flex;
    flex-direction: column;
}

.course-card h3 {
    text-align: center;
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.course-name {
    font-weight: bold;
    color: #4d4d4d;
    text-align: center;
}

.course-sub {
    margin-top: 10px;
    font-weight: bold;
}

.course-bullet-point {
    padding-left: 20px;
    margin-top: 10px;
}

.course-bullet-point li {
    margin-bottom: 10px;
}

.course-read-more a{
    background-color: #d11619;
    color: white;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    font-family: Arial;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.course-read-more a:hover {
    background: rgb(255, 76, 76)
} 

@media screen and (max-width: 414px) {
    #courses {
        height: 800px;
    }
}

/* Begin Footer */
    footer {
        height: 275px !important;
    }

    #footerSitemap {
        display: inline-block;
        padding: 60px 0px 0px 7%;
        vertical-align: top;
        font-family: arial;
        font-size: 16px;
        line-height: 25px;
    }

    #footerSitemap a { 
        color: white;
        text-decoration: none;
    }

    #footerInfo {
        display: inline-block;
        padding: 60px 0px 0px 7%;
        vertical-align: top;
        font-family: arial;
        font-size: 16px;
        line-height: 25px;
    }

    #footerContactDetails {
        display: inline-block;
        padding: 50px 7% 0px 0px;
        vertical-align: top;
        font-family: arial;
        font-size: 16px;
        line-height: 25px;
        float: right;
    }

    #footerLocationHQ {
        display: inline-block;
        padding: 50px 7% 0px 0px;
        vertical-align: top;
        font-family: arial;
        font-size: 16px;
        line-height: 25px;
        float: right;
    }

    #footerMedia {
        display: inline-block;
        vertical-align: top;
        font-family: arial;
        font-size: 16px;
        line-height: 25px;
        margin-left: -415%;
        margin-top: -50%;
    }

    #footerCopyright {
        padding-left: 500px;
        text-align: center;
    }

    .inline-block {
        display: inline-block;
        vertical-align: top;
    }

    /* Compatibility at 100px screen width */
    @media only screen and (max-width: 414px) {
        #footerCopyright {
            padding-left: 500px;}
        #footerContactDetails {
            display: block;
            float: right;
            margin-top: -50%;
            padding-left: -10%}
        #footerLocationHQ {
            float: right;
            margin-top: -50%;}
		#footerInfo {
            margin-top: -40%;
            display: block;}
        #footerSitemap {
            margin-top: -50px;
            display: block;}
        footer {
            margin-top: 530%;
        }       
    } 