@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* =========================================
   RESET
========================================= */

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

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #1C4241;
    color: #1C4241;

    font-family: 'Inter', sans-serif;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================
   HEADINGS
========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;

    font-weight: 700;

    letter-spacing: -0.4px;
}


/* =========================================
   MAIN FRAME
========================================= */

.site-frame {
    width: 100%;
    min-height: 100vh;

    border: 45px solid #1C4241;

    display: flex;
    flex-direction: column;

    background: #ffffff;
}


/* =========================================
   HEADER
========================================= */

.header {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 35px;

    background: #ffffff;

    border-bottom: 1px solid #e8eeee;

    flex-shrink: 0;
}


/* =========================================
   LOGO
========================================= */

.logo {
    display: block;

    width: auto;
    height: auto;

    padding: 0;
    margin: 0;

    line-height: 0;

    text-decoration: none;
}

.logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 180px;
    max-height: 55px;

    object-fit: contain;
}


/* =========================================
   DESKTOP MENU
========================================= */

.desktop-menu {
    display: flex;
    align-items: center;

    gap: 40px;
}

.desktop-menu > a,
.dropdown-link {
    display: block;

    width: auto;
    height: auto;

    padding: 0;
    margin: 0;

    color: #1C4241;

    font-size: 16px;
    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    transition: opacity 0.2s ease;
}

.desktop-menu > a:hover,
.dropdown-link:hover {
    opacity: 0.65;
}


/* =========================================
   SERVICES DROPDOWN - DESKTOP
========================================= */

.menu-dropdown {
    position: relative;
}

.menu-dropdown > .dropdown-link {
    display: block;
}

.dropdown-menu {
    position: absolute;

    top: calc(100% + 15px);
    right: -20px;

    width: auto;
    min-width: 240px;
    height: auto;

    padding: 8px;

    background: #ffffff;

    border: 1px solid #e1e8e8;
    border-radius: 8px;

    box-shadow: 0 8px 25px rgba(28, 66, 65, 0.12);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 100;
}

.menu-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.dropdown-menu a {
    display: block;

    width: 100%;
    height: auto;

    padding: 10px 12px;
    margin: 0;

    color: #1C4241;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.4;

    border-radius: 5px;

    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #f1f5f5;
}


/* =========================================
   COURSES
========================================= */

.courses {
    flex: 1;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;

    padding: 18px 25px;
}


/* =========================================
   COURSE BOX
========================================= */

.course-box {
    min-width: 0;

    border: 1px solid #dce5e5;
    border-radius: 12px;

    overflow: hidden;

    background: #ffffff;

    box-shadow: 0 4px 12px rgba(28, 66, 65, 0.08);

    display: flex;
    flex-direction: column;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.course-box:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(28, 66, 65, 0.15);
}


/* =========================================
   COURSE IMAGE LINK
========================================= */

.course-image-link {
    display: block;

    width: 100%;
    height: 175px;

    padding: 0;
    margin: 0;

    border: 0;

    line-height: 0;

    background: transparent;

    text-decoration: none;

    overflow: hidden;

    flex-shrink: 0;
}


/* =========================================
   COURSE IMAGE
========================================= */

.course-image-link img {
    display: block;

    width: 100%;
    height: 175px;

    padding: 0;
    margin: 0;

    border: 0;

    object-fit: cover;
    object-position: center;

    transition: transform 0.3s ease;
}

.course-image-link:hover img {
    transform: scale(1.04);
}


/* =========================================
   COURSE CONTENT
========================================= */

.course-content {
    padding: 15px;

    display: flex;
    flex-direction: column;

    flex: 1;
}


/* =========================================
   COURSE TITLE
========================================= */

.course-content h2 {
    margin: 0 0 8px 0;

    color: #1C4241;

    font-family: 'Inter', sans-serif;

    font-size: 23px;
    font-weight: 700;

    letter-spacing: -0.5px;

    line-height: 1.2;
}

.course-content h2 a {
    display: inline;

    width: auto;
    height: auto;

    padding: 0;
    margin: 0;

    color: #1C4241;

    font-family: inherit;

    font-size: inherit;
    font-weight: inherit;

    line-height: inherit;

    text-decoration: none;
}

.course-content h2 a:hover {
    text-decoration: underline;
}


/* =========================================
   COURSE DESCRIPTION
========================================= */

.course-content p {
    margin: 0 0 10px 0;

    color: #536565;

    font-family: 'Inter', sans-serif;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.55;
}


/* =========================================
   COURSE LINK
========================================= */

.course-link {
    display: inline;

    width: auto;
    height: auto;

    padding: 0;
    margin: auto 0 0 0;

    color: #1C4241;

    font-family: 'Inter', sans-serif;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.4;

    text-decoration: none;
}

.course-link:hover {
    text-decoration: underline;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    border-top: 1px solid #e8eeee;

    padding: 12px 25px;

    text-align: center;

    flex-shrink: 0;

    background: #ffffff;
}

.footer-menu {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 30px;

    margin-bottom: 7px;
}

.footer-menu a {
    display: inline;

    width: auto;
    height: auto;

    padding: 0;
    margin: 0;

    color: #1C4241;

    font-family: 'Inter', sans-serif;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.copyright {
    color: #718080;

    font-family: 'Inter', sans-serif;

    font-size: 11px;
    font-weight: 400;

    line-height: 1.4;
}


/* =========================================
   HAMBURGER
========================================= */

.hamburger {
    display: none;

    width: 40px;
    height: 40px;

    padding: 7px;
    margin: 0;

    background: transparent;

    border: none;

    cursor: pointer;
}

.hamburger span {
    display: block;

    width: 26px;
    height: 2px;

    margin: 5px auto;

    background: #1C4241;

    transition: 0.25s ease;
}


/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {
    display: none;

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e8eeee;
}

.mobile-menu.open {
    display: block;
}


/* =========================================
   MOBILE MENU LINKS
========================================= */

.mobile-menu > a,
.mobile-services {
    display: flex;

    width: 100%;
    height: auto;

    padding: 15px 20px;
    margin: 0;

    background: #ffffff;

    border: none;
    border-bottom: 1px solid #edf1f1;

    color: #1C4241 !important;

    font-family: 'Inter', sans-serif;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.4;

    text-align: left;

    text-decoration: none;

    cursor: pointer;
}


/* =========================================
   MOBILE SERVICES BUTTON
========================================= */

.mobile-services {
    justify-content: space-between;
    align-items: center;

    appearance: none;
    -webkit-appearance: none;

    color: #1C4241 !important;
    background: #ffffff !important;
}


/* =========================================
   SERVICES TEXT
========================================= */

.mobile-services .services-text {
    display: block;

    color: #1C4241 !important;

    font-family: 'Inter', sans-serif;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.4;
}


/* =========================================
   SERVICES ICON
========================================= */

.mobile-services .services-icon {
    display: block;

    color: #1C4241 !important;

    font-family: 'Inter', sans-serif;

    font-size: 21px;
    font-weight: 400;

    line-height: 1;

    flex-shrink: 0;
}


/* =========================================
   MOBILE SERVICES STATES
========================================= */

.mobile-services:hover,
.mobile-services:focus,
.mobile-services:active,
.mobile-services:focus-visible {
    color: #1C4241 !important;

    background: #ffffff !important;

    outline: none;
}

.mobile-services:hover .services-text,
.mobile-services:focus .services-text,
.mobile-services:active .services-text,
.mobile-services:focus-visible .services-text {
    color: #1C4241 !important;
}

.mobile-services:hover .services-icon,
.mobile-services:focus .services-icon,
.mobile-services:active .services-icon,
.mobile-services:focus-visible .services-icon {
    color: #1C4241 !important;
}


/* =========================================
   MOBILE SERVICES SUBMENU
========================================= */

.mobile-submenu {
    display: none;

    width: 100%;

    background: #f7f9f9;
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu a {
    display: block;

    width: 100%;
    height: auto;

    padding: 12px 35px;
    margin: 0;

    color: #1C4241;

    font-family: 'Inter', sans-serif;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.4;

    text-decoration: none;
}

.mobile-submenu a:hover {
    background: #eef3f3;
}


/* =========================================
   HAMBURGER ANIMATION
========================================= */

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================
   TABLET
   2 BOXES PER ROW
========================================= */

@media (max-width: 1000px) {

    .desktop-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .courses {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 18px;
    }
}


/* =========================================
   MOBILE
   1 BOX PER ROW
========================================= */

@media (max-width: 650px) {

    .site-frame {
        border-width: 8px;
    }

    .header {
        height: 70px;

        padding: 0 18px;
    }

    .logo img {
        max-width: 140px;
        max-height: 48px;
    }

    .courses {
        grid-template-columns: 1fr;

        gap: 15px;

        padding: 15px;
    }

    .course-image-link {
        height: 175px;
    }

    .course-image-link img {
        height: 175px;
    }

    .course-content {
        padding: 15px;
    }

    .course-content h2 {
        font-size: 22px;
    }

    .course-content p {
        font-size: 14px;
    }

    .footer {
        padding: 15px;
    }

    .footer-menu {
        gap: 20px;
    }
}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .site-frame {
        border-width: 6px;
    }

    .header {
        padding: 0 12px;
    }

    .courses {
        padding: 12px;
    }

    .course-content h2 {
        font-size: 21px;
    }

    .footer-menu {
        gap: 15px;
    }
}