:root {
    --primary-bg: #111827;
    --primary-text: #F9FAFB;
    --secondary-bg: #FFFFFF;
    --secondary-text: #1F2937;
    --accent-blue: #1E40AF;
    --accent-dark-blue: #1E3A8A;
    --accent-purple: #7C3AED;
    --accent-turquoise: #06B6D4;
    --accent-graphite: #374151;
    --auxiliary-text: #6B7280;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    text-decoration: none;
    color: var(--accent-turquoise);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {

    h1,
    h2,
    h3,
    h4 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .break-mobile {
        font-size: 0.9em;
        word-break: break-all;
    }
}

.fade-in {
    animation: fadeInEffect 1s ease-out;
}

@keyframes fadeInEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

::selection {
    background: var(--accent-purple);
    color: white;
}

/* ===== header_main ===== */
#header {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
}

.js-mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-mobile-menu:not(.hidden) {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.js-menu-link:hover {
    color: var(--accent-turquoise);
    padding-left: 8px;
    transition: all 0.2s ease;
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
}

#hero p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#hero .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== core_content ===== */
#about {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-family: sans-serif;
    line-height: 1.6
}

#about h2,
#about h3,
#about h4 {
    color: var(--primary-text);
    font-weight: 700
}

#about .prose p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--primary-text)
}

@media(min-width:768px) {
    #about .prose p {
        font-size: 1.125rem
    }
}

#about ul li::marker {
    color: var(--accent-turquoise)
}

#about .js-share-btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.39)
}

#about .js-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.23)
}

/* ===== courses_list ===== */
#courses .js-course-card:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
}

#courses .modal-open {
    display: flex !important;
}

#modal-body p {
    line-height: 1.7;
    font-size: 1rem;
}

#modal-body h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-top: 1.5rem;
    color: var(--accent-dark-blue);
}

/* ===== curriculum_details ===== */
#program {
    hyphens: auto;
}

#program h2,
#program h3,
#program h4 {
    line-height: 1.2;
}

.js-program-item {
    transition: transform 0.4s ease;
}

.js-program-item:hover {
    transform: translateX(4px);
}

/* ===== process_steps ===== */
.js-process-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.js-process-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-turquoise);
}

.hyphens-auto {
    hyphens: auto;
}

/* ===== audience_categories ===== */
#audience {
    overflow: hidden
}

#audience h2,
#audience h3 {
    hyphens: auto
}

.js-audience-card {
    height: 100%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)
}

/* ===== article_previews ===== */
#blog article {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#blog img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hyphens-auto {
    hyphens: auto;
    -webkit-hyphens: auto;
}

@media (max-width: 767px) {
    #blog h2 {
        font-size: 16px !important;
        line-height: 1.2;
    }

    #blog h3 {
        font-size: 14px !important;
        line-height: 1.3;
    }
}

/* ===== faq_data ===== */
#faq {
    background-color: var(--primary-bg);
}

.collapse-title::after {
    color: var(--accent-purple) !important;
}

.js-faq-item {
    transition: all 0.3s ease;
}

.js-faq-item:hover {
    border-color: var(--accent-purple);
}

.collapse-content p {
    hyphens: auto;
    line-height: 1.5;
}

/* ===== contact_info ===== */
#contact {
    position: relative;
    width: 100%;
}

#contact h2,
#contact h3,
#contact p,
#contact a {
    hyphens: auto;
    line-height: 1.2;
}

.ph {
    font-family: 'Phosphor' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
}

#contact a {
    text-decoration: none;
}

#contact .container {
    max-width: 1200px;
}

/* ===== location_map ===== */
#map {
    position: relative;
}

.js-map-iframe {
    filter: grayscale(100%) invert(92%) contrast(1.1) hue-rotate(180deg);
}

#map h2,
#map p {
    word-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 767px) {
    #map h2 {
        font-size: 16px;
        line-height: 1.2;
    }

    #map p {
        font-size: 14px;
        line-height: 1.3;
    }
}

/* ===== footer_main ===== */
#footer {
    hyphens: auto;
}

#footer a,
#footer p,
#footer span {
    line-height: 1.4;
}

#footer .js-footer-link {
    position: relative;
}

#footer .js-footer-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #06B6D4;
    transition: width 0.3s ease;
}

#footer .js-footer-link:hover::after {
    width: 100%;
}