@font-face {
    font-family: montLight;
    src: url('../fonts/montLight.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: montHeavy;
    src: url('../fonts/montHeavy.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: montRegular;
    src: url('../fonts/montRegular.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: montBold;
    src: url('../fonts/montBold.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: montSemiBold;
    src: url('../fonts/montSemibold.otf') format('opentype');
    font-weight: normal;
}

:root {
    --primary-color: #30A098;
    --secondary-color: #EDED88;
    --text-color: #000;
    --dark-green: #273F3C;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: montLight;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    position: relative;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo img {
    height: auto;
    max-width: 200px;
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4rem;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    font-family: montSemiBold;
    font-size: 12pt;
    padding: 5px 15px;
}

.nav-links a:hover {
    color: var(--primary-color);
    font-family: montSemiBold;
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    padding: 10px 20px;
}

/* Dropdown menu styling */
.nav-links li {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 10px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    margin-top: 10px;
}

.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border: none;
    border-radius: 0;
    margin: 5px 0;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    border: none;
    padding: 12px 16px;
}

.nav-links li:hover .dropdown-content {
    display: block;
}

.login-button a {
    font-family: montRegular;
    background-color: #157C75;
    text-decoration: none;
    color: #EDED88;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.login-button a:hover {
    color: #157C75;
    background-color: #EDED88;
    font-family: montBold;
}

.login-button-mobile {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        clip-path: circle(0px at 90% -10%);
        -webkit-clip-path: circle(0px at 90% -10%);
        transition: all 0.5s ease-out;
        pointer-events: none;
        opacity: 0;
        gap: 1.5rem;
        z-index: 1000;
    }

    .nav-links.active {
        clip-path: circle(1000px at 90% -10%);
        -webkit-clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
        opacity: 1;
    }

    /* Mobile dropdown styling */
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        margin-top: 10px;
        text-align: center;
        background-color: #f9f9f9;
    }
    
    .nav-links li:hover .dropdown-content,
    .nav-links li:focus-within .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 10px;
        text-align: center;
    }

    .login-button {
        display: none;
    }

    .login-button-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 80%;
    }

    .login-button-mobile a {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
        font-family: montRegular;
        background-color: #157C75;
        text-decoration: none;
        color: #EDED88;
        padding: 10px 30px;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .login-button-mobile a:hover {
        color: #157C75;
        background-color: #EDED88;
        font-family: montBold;
    }
}

.hero-section {
    display: flex;
    background-image: url('../img/hero-banner.png');
    background-size: cover;
    background-repeat: no-repeat;
    padding: 30px;
    color: #fff;
    text-align: left;
    border-bottom-right-radius: 170px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.hero-text {
    max-width: 800px;
    margin-left: 100px;
    padding: 60px;
}

.hero-text > h1 {
    font-size: 40pt;
    line-height: 70px;
    font-family: montHeavy;
    margin-left: -10px;
}

.hero-text > p {
    font-size: 15pt;
    font-weight: 300;
}

.hero-button {
    margin-top: 30px;
    width: 300px;
}

.hero-button a {
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background-color: #273f3c;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    display: inline-block;
}

.hero-image > img {
    height: auto;
    max-width: 100%;
    margin-left: -200px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        border-bottom-right-radius: 80px;
    }

    .hero-text {
        width: 100%;
        margin-left: 0;
        padding: 20px;
    }

    .hero-text h1 {
        font-size: 25pt;
        line-height: 50px;
        text-align: left;
        margin-left: 0;
    }

    .hero-button {
        margin-top: 20px;
        width: 100%;
        text-align: left;
    }

    .hero-button a {
        font-weight: bold;
        text-decoration: none;
        text-align: left;
        color: #fff;
        background-color: #273f3c;
        padding: 15px 25px;
        border-radius: 30px;
        font-weight: 500;
    }

    .hero-text > p {
        font-size: 13pt;
        text-align: left;
        line-height: 25px;
    }

    .hero-image > img {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
}

.second-section {
    padding: 30px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.heading-section {
    text-align: center;
}

.heading-section > h1 {
    font-size: 45pt;
    font-family: montHeavy;
    color: #273f3c;
    margin-bottom: 40px;
}

.heading-section > p {
    font-size: 28pt;
    color: #31a099;
    margin-top: -40px;
    margin-bottom: 40px;
}

.link-icon-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.link-icon-section > div {
    text-align: center;
    max-width: 400px;
    width: 100%;
    padding: 40px;
    margin: 15px;
    border-radius: 30px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.10);
}

.link-icon-section > div:hover {
    transform: scale(1.05);
    transition: 0.32s;
}

.bursary-link > p,
.program-link > p,
.application-link > p {
    font-size: 17pt;
    font-weight: 800;
    color: #273f3c;
    margin: 20px;
}

.bursary-link > a,
.program-link > a,
.application-link > a {
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background-color: #273f3c;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-block;
}

@media (max-width: 768px) {
    .second-section {
        padding: 20px;
    }

    .heading-section {
        text-align: center;
        padding: 20px;
    }

    .heading-section h1 {
        font-size: 30pt;
        margin-bottom: 20px;
    }

    .heading-section p {
        font-size: 20pt;
        margin-top: -20px;
        margin-bottom: 20px;
    }

    .link-icon-section {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .link-icon-section div {
        width: 100%;
        margin: 10px 0;
        padding: 30px;
    }

    .bursary-link > p,
    .program-link > p,
    .application-link > p {
        font-size: 14pt;
        margin: 15px;
    }
}

.slide-main-section-mobile {
    display: none;
}

.slide-main-section {
    background-image: url('../img/shape.png');
    background-repeat: no-repeat;
    background-size: 75% 100%;
    height: auto;
    width: 100%;
    max-width: 100vw;
    border-bottom-right-radius: 150px;
    border-top-right-radius: 150px;
    padding: 80px 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    overflow: hidden;
}

.white-line {
    border: solid 1px #fff;
}

.text-section > p {
    color: #fff;
    font-size: 15pt;
    line-height: 27pt;
}

.text-section > a {
    margin-top: 10px;
    text-decoration: none;
    color: #fff;
    background-color: #273f3c;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-block;
}

.text-section h3 {
    color: #fff;
    font-size: 15pt;
}

.image-section {
    border-radius: 10px;
    max-width: 100%;
}

.image-section > img {
    height: auto;
    width: 650px;
    margin-left: 20px;
    border-radius: 30px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .slide-main-section {
        display: none;
    }

    .slide-main-section-mobile {
        display: flex;
        height: auto;
        width: 100%;
        background-color: var(--primary-color);
        padding: 35px;
        flex-direction: column;
        justify-content: left;
        color: #fff;
        border-bottom-right-radius: 80px;
        border-top-right-radius: 80px;
    }

    .text-section-mobile p {
        font-size: 12pt;
        line-height: 20px;
    }

    .link-section-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
    }

    .link-section-mobile a {
        margin-top: 10px;
        text-decoration: none;
        color: #fff;
        background-color: #273f3c;
        padding: 12px 30px;
        border-radius: 30px;
    }

    .image-section-mobile img {
        width: 100%;
        border-radius: 30px;
        padding: 20px;
    }
}

.main-faculty {
    background-image: url('../img/pattern.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #EDED88;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.main-faculty > h1 {
    text-align: center;
    padding: 50px 0;
    font-size: 35pt;
    font-family: montHeavy;
    color: #31a099;
    margin-bottom: -30px;
}

.main-container {
    background-color: #31a099;
    color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: center;
    min-height: 98vh;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.login-logo {
    padding: 200px 30px;
}

.login-logo > img {
    height: auto;
    width: 250px;
    margin-right: 20px;
    max-width: 100%;
}

.login-form {
    padding: 150px 30px;
}

.login-form > h2 {
    font-size: 36pt;
}

.login-form input[type=text], 
.login-form input[type=password], 
.login-form input[type=email], 
.login-form input[type=tel] {
    padding: 15px;
    width: 100%;
    max-width: 250px;
    margin-top: 10px;
    border: none;
    border-radius: 30px;
}

.login-form input[type=number] {
    padding: 15px;
    width: 80px;
    margin-top: 10px;
    border: none;
    border-radius: 30px;
}

.login-form input[type=submit] {
    padding: 15px;
    width: 100%;
    max-width: 280px;
    margin-top: 10px;
    border: none;
    border-radius: 30px;
}

.login-form input[type=submit]:hover {
    background-color: #273f3c;
    color: #fff;
    font-weight: 700;
}

.login-form > p {
    font-size: 9pt;
}

.login-form > p > a {
    font-weight: 500;
    text-decoration: none;
    color: #273f3c;
}

.login-signup {
    background-color: #31a099;
    color: #fff;
    border-radius: 15px;
    padding: 25px 30px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    float: left;
    max-width: 100%;
}

.login-signup > a {
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
}

.login-signup > span {
    padding: 10px 15px;
    color: #fff;
}

.login-form > h2 {
    font-family: montHeavy;
}

#verify-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-image: url('../img/pattern.png');
    background-size: cover;
    background-color: #EDED88;
    color: #31a099;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

#header {
    text-align: center;
    margin: 40px 20px;
    font-size: 24px;
    font-family: montHeavy;
}

#drop-area {
    width: 90%;
    max-width: 600px;
    height: auto;
    margin: 20px auto;
    text-align: center;
    background-color: #fff;
    border: 2px dashed #31a099;
    border-radius: 20px;
    cursor: pointer;
    padding: 50px;
}

#preview-container {
    text-align: center;
}

#drop-area.drag-over {
    background-color: #eee;
}

#verify-container table tr td {
    padding: 20px;
    font-size: 15pt;
    font-family: montRegular;
    color: #31a099;
}

#verify-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

#left-actions {
    text-align: center;
    justify-content: center;
    margin: 30px 20px;
    font-family: montSemiBold;
}

input[type=radio] {
    margin-right: 10px;
    padding: 40px;
    -ms-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
}

#right-actions > a:hover {
    background-color: #31a099;
    color: #fff;
}

.container {
    display: block;
    position: relative;
    padding-right: 35px; /* Changed from padding-left to padding-right */
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    right: 0; /* Changed from left: 0 to right: 0 */
    height: 25px;
    width: 25px;
    background-color: #eee;
}

.container:hover input ~ .checkmark {
    background-color: #ccc;
}

.container input:checked ~ .checkmark {
    background-color: #EDED88;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.container input:checked ~ .checkmark:after {
    display: block;
}

.container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid #31a099;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

:root {
    --primary-color: #31a099;
    --secondary-color: #EDED88;
    --text-color: #000;
    --light-gray: #f5f5f5;
}

.carousel-container {
    width: 100%;
    max-width: 100vw;
    position: relative;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 40px;
    padding: 0 15px;
    overflow: hidden;
}

.carousel {
    display: flex;
    gap: 15px;
    padding: 30px 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel_1 {
    display: flex;
    gap: 15px;
    padding: 30px 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel_1::-webkit-scrollbar {
    display: none;
}

.faculty-card {
    flex: 0 0 280px;
    height: 380px;
    scroll-snap-align: start;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faculty-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 30px;
    overflow: hidden;
}

.card-front {
    background: white;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    color: #fff;
    background-color: var(--primary-color);
}

.faculty-image-container {
    height: 70%;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 30px;
}

.faculty-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-image {
    transform: scale(1.03);
}

.faculty-title-container {
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    text-align: left;
}

.faculty-category {
    font-size: 14px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    margin-top: -60px;
    width: fit-content;
    margin-left: 15px;
}

.faculty-title {
    font-size: 11pt;
    font-weight: 600;
    color: #fff;
    margin-top: 10px;
    margin-left: 15px;
}

.card-back {
    background: white;
    color: #495057;
    transform: rotateY(180deg);
    padding: 20px;
    font-size: 9pt;
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
}

.faculty-description {
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    color: #495057;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border: 1px solid #e0e0e0;
    font-size: 18px;
    color: #495057;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background: #f1f1f1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev_1 {
    left: 10px;
}

.next_1 {
    right: 10px;
}

@media (max-width: 768px) {
    .faculty-card {
        flex: 0 0 240px;
        height: 320px;
    }

    .nav-button {
        display: none;
    }

    .faculty-title {
        font-size: 18px;
    }

    .faculty-description {
        font-size: 14px;
    }
    
    .carousel-container {
        padding: 0 10px;
    }
    
    .carousel,
    .carousel_1 {
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .hero-text > h1 {
        font-size: 22pt;
        line-height: 40px;
    }
    
    .heading-section > h1 {
        font-size: 24pt;
    }
    
    .heading-section > p {
        font-size: 18pt;
    }
    
    .login-form {
        padding: 100px 20px;
    }
    
    .login-form > h2 {
        font-size: 28pt;
    }
}