@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --purple: #663366;
    --white: #ffffff;
    --pink: #E5007D;
    --black: #000000;
    --grey: #737272;
    --light-grey: #F2F2F3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* for carousel animation */
.slide-in {
    transform: translateX(0);
    transition: transform 0.3s ease-out;
}

.slide-out {
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
}

/* white button style */
.btn-white {
    background-color: var(--white);
    color: var(--purple);
    padding: .15rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
    transition: all .3s;
}

.btn-white:hover,
.btn-white:focus,
.btn-white:active {
    background-color: var(--purple);
    color: var(--white);
}

/* purple button style */
.btn-purple {
    background-color: var(--purple);
    color: var(--white);
    padding: .1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s;
}

.btn-purple:hover,
.btn-purple:focus,
.btn-purple:active {
    background-color: var(--white);
    color: var(--purple);
}

/* pink button style */
.btn-pink {
    background-color: var(--pink);
    color: var(--white);
    padding: .1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s;
}

.btn-pink:hover,
.btn-pink:focus,
.btn-pink:active {
    background-color: var(--white);
    color: var(--pink);
}

/* navigation bar */
.nav {
    background-color: var(--purple);
    color: var(--white);
    padding: 10px;
    text-align: center;

    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: .8rem 1rem 0;
    position: relative;
    z-index: 100;
}

/* nav logo */
.nav .logo {
    height: 45px;
}

/* nav links */
.nav .nav-links {
    list-style: none;
    display: flex;
}

.nav .nav-links li:not(:last-child) {
    margin-right: 2rem;
}

.nav .nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif;
    padding-bottom: .4rem;

    display: block;
    position: relative;
}

.nav .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--white);

    transition: all .3s;
}

.nav .nav-links li a:hover::after {
    width: 100%;
}



/* nav search and flag */
.nav .right .search {
    margin-right: .5rem;
}

.nav .right img {
    width: 25px;
}

/* hamburger */
.hamburger {
    width: 25px;
    height: 20px;
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: var(--white);
}

/* mobile nav */
.mobile-nav {
    background-color: var(--purple);
    color: var(--white);
    position: absolute;
    top: -1000%;
    left: 0;
    width: 100%;
    z-index: 99;
    padding: 1.5rem;

    transition: all .3s;
}

.mobile-nav.active {
    top: 100%;
}

.mobile-nav .mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav .mobile-nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
}

.mobile-nav .mobile-nav-links li a:hover {
    text-decoration: underline;
}

/* hero section */
.hero {
    position: relative;
    background-color: var(--purple);
    background-image: url('../images/home/top-bg-curved.png');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}

.hero .container {
    height: calc(100vh - 55px);
    display: flex;
    justify-content: end;
    align-items: start;
    flex-direction: column;
}

/* triangle style */
.hero .bg-img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: url('../images/home/top-bg.png') no-repeat center top/cover;
    clip-path: polygon(0% 0%, 72% 0%, 90% 50%, 72% 100%, 0% 100%);
    /* border-top-right-radius: 50%;
    border-bottom-right-radius: 50%; */
    z-index: 0;
}

.hero-text {
    background-color: var(--pink);
    position: relative;
    z-index: 2;
    max-width: 72%;
    color: var(--white);
    padding: .6rem 1.3rem;

    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: .5rem;
    font-family: 'Roboto Condensed', sans-serif;
}

.hero-text p {
    font-size: .65rem;
    margin-bottom: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

.apply-btn {
    z-index: 2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1.5rem;
}

/* sitcky navbar */
.sticky-nav {
    background-color: var(--white);
    color: var(--purple);
    padding: .7rem 0;

    position: sticky;
    top: 0;
    z-index: 100;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, .1); */
}

.sticky-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.2rem 0;
    gap: 1rem;
}

.sticky-nav ul li a {
    color: var(--black);
    border: 1px solid var(--purple);
    padding: .7rem 1.2rem;
    border-radius: .5rem;
    font-family: 'Roboto Condensed', sans-serif;
    display: block;

    transition: all .3s;
}

.sticky-nav ul li a:hover,
.sticky-nav ul li a:active,
.sticky-nav ul li a.active {
    background-color: var(--purple);
    color: var(--white);
}

/* sections */
.home-section {
    background-color: var(--white);
    color: var(--black);
    padding: 2rem 0;
}

/* titles in different section */
.home-section h2 {
    font-size: 1.6rem;
    margin-bottom: .6rem;
    font-family: 'Roboto Condensed', sans-serif;
}

.home-section p {
    color: var(--grey);
    line-height: 2rem;
    text-align: justify;
}

/* about */
#about p #hello {
    color: var(--pink);
    font-weight: 800;
}

/* courses */
#courses h2 {
    text-align: center;
}

#courses #learn {
    background-color: var(--light-grey);
    padding: 1rem 1.75rem;
    margin-top: 1.5rem;
    margin-left: 4rem;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

#courses #learn .container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

#courses #learn .card {
    text-align: center;
}

/* image course */
#courses #learn .card img {
    width: 70px;
    margin-bottom: .5rem;
}

/* texts inside the courses */
#courses #learn .card .learn-text {
    font-size: .9rem;
    margin-bottom: .5rem;
    font-weight: 400;
    line-height: 2rem;
}

/* year planning */
#year-planning header {
    display: flex;
    margin-bottom: 2rem;
    justify-content: center;
}

.year-planning-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    position: relative;
}

.purple-block {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 500%;
    right: 108%;

    background-color: var(--purple);
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

#year-planning header h2 {
    margin-bottom: 1rem;
}

#year-planning header ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

#year-planning header ul li a {
    color: var(--black);
    border: 1px solid var(--purple);
    padding: .5rem;
    border-radius: .5rem;
    font-family: 'Roboto Condensed', sans-serif;
    display: block;

    transition: all .3s;
}

#year-planning header ul li a:hover,
#year-planning header ul li a:active,
#year-planning header ul li a.active {
    background-color: var(--purple);
    color: var(--white);
}

/* year planning content */
.profile .container {
    max-width: 800px;
}

.profile .profile-container {
    display: flex;
    background-color: var(--purple);
    border-radius: .6rem;
    overflow: hidden;
}

.profile .profile-container img {
    width: 65%;
    object-fit: cover;
    object-position: center right;
    flex-grow: 1;
}

.profile .content {
    background-color: var(--purple);
    padding: 1.2rem 1.2rem 1.2rem 0;
    text-align: end;
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
}

/* profile title */
.profile .content h3 {
    background-color: var(--white);
    display: inline-block;
    color: var(--purple);
    padding: .4rem 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Roboto Condensed', sans-serif;
    margin-bottom: .8rem;
}

/* profile paragraph texts */
.profile .content p {
    color: var(--white);
    line-height: 2rem;
    text-align: end;
    font-size: .8rem;
    margin-bottom: .8rem;
}

/* learn more button */
.learn-more {
    padding: .1rem .5rem;
    border-radius: 30px;
    font-size: .85rem;
    font-family: 'Roboto Condensed', sans-serif;
}

/* structure and tracks */
#structure h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.years {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

/* line between year numbers */
.years .line {
    background-color: var(--purple);
    height: 2px;
    flex: 1;
    margin: 0 1.5rem;
}

.years h3 {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--purple);
    margin-bottom: 0;
    cursor: pointer;
}

.years h3.active {
    color: var(--pink);
}

.years h3 .num {
    background-color: var(--purple);
    color: var(--white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.years h3.active .num {
    background-color: var(--pink) !important;
}

/* the content int structure and tracks */
#structure .carousel {
    display: flex;
    align-items: center;
    overflow: hidden;
}

#structure .carousel .arrow-left, #structure .carousel .arrow-right {
    font-size: 1.5rem;
    margin: 1rem;
    cursor: pointer;
}

#structure .content {
    background-color: var(--light-grey);
    border-radius: .9rem;
    padding: 1.5rem;
    color: black;
    flex: 1;
}

#structure .content p {
    line-height: 2rem;
    text-align: justify;
    color: var(--black);
    font-weight: 600;
}

#structure .content ul {
    margin-left: 1.2rem;
    line-height: 2rem;
}

#structure .content ul li a {
    color: var(--black);
    font-weight: 600;
    text-decoration: underline;
}

/* why choose */
#why-choose .content {
    display: flex;
    background-color: var(--light-grey);
    border-radius: .9rem;
    overflow: hidden;
}

#why-choose .content ul {
    flex: 1;
    padding: 1.5rem;
    margin-left: 1rem;
    line-height: 1.8rem;
    list-style-image: url('../images/home/check.png');
}

#why-choose .content ul li {
    color: var(--black);
    font-weight: 500;
    padding-left: 1rem;
}

#why-choose .content img {
    width: 20%;
    object-fit: cover;
    object-position: center left;
}

/* agenda */
#agenda h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.events {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.event {
    position: relative;
    width: 240px;
}

.event img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.event .texts {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
}

.event .texts .agenda-title {
    background-color: var(--white);
    color: var(--purple);
    font-weight: 700;
    padding: 1rem 1.5rem;
    margin: 0 1rem .5rem;
    text-align: center;
    font-size: 1.5rem;
}

.event .texts a {
    display: block;
    margin: 0 1rem;
    text-align: center;
    text-transform: uppercase;
    padding: .5rem;
    font-size: .9rem;
}

/* more info */
#more-info h2 {
    text-align: center;
    margin-bottom: 1rem;
}

#more-info .content {
    background-color: var(--light-grey);
    padding: 1.5rem;
    border-bottom-left-radius: 2rem;
    border-top-right-radius: 2rem;

    display: flex;
    justify-content: center;
    gap: 1rem;
}

#more-info .info {
    padding: 1rem;
}

/* info title */
#more-info .info h3 {
    color: var(--purple);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Roboto Condensed', sans-serif;
}

#more-info .info p {
    color: var(--black);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Roboto Condensed', sans-serif;
}

#more-info .info a {
    padding: .5rem .6rem;
    border-radius: 2rem;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
}

.right-arrow {
    font-weight: 700;
    color: var(--pink);
}

/* contact */
#contact {
    background-color: var(--purple);
    color: var(--white);
    margin-top: 2rem;
}

#contact h2 {
    text-align: center;
    margin-bottom: 1rem;
}

#contact .content {
    display: flex;
}

#contact #details {
    flex: 2;
}

#contact #details h3 {
    margin-bottom: 1rem;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: .1rem;
}

#contact #details .address {
    color: var(--white);
    text-decoration: underline;
    font-family: 'Roboto Condensed', sans-serif;
}

#contact #details .socmeds {
    margin-top: 3rem;
}

#contact #details .socmeds a {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

#contact #details .socmeds a img {
    width: 30px;
    margin-right: 1rem;
}

#contact #details .socmeds a p {
    margin-bottom: 0;
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--white);
}

#contact #contact-form {
    flex: 3;
}

#contact-form form {
    background-color: var(--white);
    color: var(--purple);
    display: block;
    width: 70%;
    min-width: 300px;
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: 1rem;
    height: 100%;
}

#contact-form form h4 {
    margin-bottom: 1rem;
}

#contact-form form h4 span {
    color: var(--pink);
    font-size: .9rem;
}

#contact-form form input, #contact-form form textarea {
    border: none;
    width: 100%;
    padding: .5rem;
    margin-bottom: 1rem;
    background-color: #D9D9D9;
}

#contact-form form button {
    width: 100%;
    outline: none;
    border: none;
    padding: .5rem;
    text-transform: uppercase;
}

#contact-form form button:hover {
    border: 1px solid var(--purple);
}

footer * {
    font-family: 'Roboto Condensed', sans-serif;
}

/* top footer */
footer #top {
    padding: 1.25rem 1rem;
}

footer #top .container {
    display: flex;
    gap: 2rem;
}

footer #top .col {
    flex: 1;
}

footer #top .col h3 {
    margin-bottom: 1rem;
}

footer #top .container .col ul {
   list-style: none;
   line-height: 2rem;
}

footer #top .container .col ul li a {
    color: var(--grey);
    font-weight: 500;
}

.arrow {
    font-weight: 700 !important;
}

footer #top .container .col ul li a:hover {
    text-decoration: underline;
}

/* bottom part */
footer #bottom {
    padding: 1.25rem 1rem;
    background-color: var(--purple);
    color: var(--white);
    font-weight: 400;
}

footer #bottom #pages {
    margin-bottom: 1rem;
}

footer #bottom #pages a {
    color: var(--white);
}

footer #bottom #pages a:hover {
    text-decoration: underline;
}

footer #bottom #cookie {
    margin-bottom: 0;
}

footer #bottom .lower-part {
    display: flex;
    justify-content: space-between;
}

footer #bottom .lower-part .socmed-links {
    display: flex;
    gap: .8rem;
    margin-right: 2rem;
}

footer #bottom .lower-part a {
    background-color: var(--white);
    padding: .3rem;
    border-radius: 50%;
    display: block;
    width: 26px;
    height: 26px;
}

footer #bottom .lower-part a img {
    width: 16px;
}

/* scroll to top button */
#scrollToTopButton {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--grey);
    color: white;
    cursor: pointer;
    padding: .3rem;
    font-size: 18px;
}