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

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Source Sans Pro, Arial, sans-serif;
}

/* =========================
   HTML & BODY
========================= */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background: #fff;
    color: #000;
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* =========================
   TEXT ELEMENTS
========================= */

p,
span,
small,
strong,
em {
    margin: 0;
    padding: 0;
}

/* =========================
   LINKS
========================= */

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   LISTS
========================= */

ul,
ol {
    list-style: none;
}

/* =========================
   BUTTONS
========================= */

button {
    border: none;
    background: none;
    outline: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

/* =========================
   INPUTS & FORMS
========================= */

input,
textarea,
select {
    border: none;
    outline: none;
    background: none;
    font: inherit;
    color: inherit;
}

textarea {
    resize: none;
}

/* =========================
   IMAGES & MEDIA
========================= */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* =========================
   TABLES
========================= */

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* =========================
   FORM ELEMENTS
========================= */

input,
button,
textarea,
select {
    font: inherit;
}

/* =========================
   REMOVE QUOTES
========================= */

blockquote,
q {
    quotes: none;
}

/* =========================
   REMOVE DEFAULT FIELDSET
========================= */

fieldset {
    border: none;
}

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

hr {
    border: none;
    height: 1px;
    background: #ccc;
}

/* =========================
   Colors
==========================*/
:root {
    --dark-heading: #1b232e;
    --secondary-dark-grey: #363636;
    --grey: #2d3941;
    --paragraph-text: #5b6780;
    --breadcrumb: #5d676e;
    --minor-grey: #747c82;
    --dark-grey-2: #444f57;
    --grey-border: #b3bdc0;
    --grey-border-2: #adaeb1;
    --grey-bg: #f1f8f8;
    --white: #fff;
    --pill: #f0f4f7;
    --bg-light-grey: #fafafd;
    --light-grey-border: #d6d6d6;
    --light-grey-3: #eff2fc;
    --level-background: #f8f9fa;
    --discover-border: #dce0e5;
    --light-grey-4: #f3f6f7;
    --light-grey-5: #d2d8de;
    --discover-blue: #008fc3;
    --border-blue: #c5eaff;
    --breadcrumb-blue: #016c94;
    --intro-blue: #1581af;
    --light-blue: #0091c7;
    --pale-blue: #f0f9fb;
    --heading-text: #1e2d40;
    --blue-2: #0056d2;
    --light-blue-2: #def1f7;
    --alison-green: #009b5d;
    --alt-green: #007646;
    --pale-green: #ebf5db;
    --hover-green: #008952;
    --ad-left: #effff6;
    --ad-right: #b6e4f1;


    --space: 6rem;
}

/* =========================
   Navigation bar
==========================*/
#main-nav, #main-nav-left, #mn-nav, #main-nav-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--paragraph-text);
    font-size: 14px;
    gap: 2rem;
}

#main-nav {
    padding-inline: var(--space);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
    z-index: 100;
}

#logo {
    width: 8rem;
}

#mn-nav {
        align-self: stretch;
        position: relative;
}

.mn-nav-item {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.mn-sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 16rem;
    display: none;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 0 4px rgba(37, 37, 37, 0.07);
    gap: 4rem;
}

#mn-nav:hover .mn-sub-nav {
    display: flex;
}

.icon-turn {
    transition: .5s transform ease-in-out;
}

#mn-nav:hover .icon-turn {
    transform: rotate(180deg);
    
}

.mn-sub-nav h2 {
    color: black;
}

.mn-sub-nav a {
    margin-block: .5rem;
    transition: 1s all;
}

.mn-sub-nav a:hover {
    text-decoration: underline;
}

.mn-sn-column {
    display: flex;
    flex-direction: column;
}

.mn-submit {
    display: flex;
    align-items: center;
    width: 15rem;
}

.mn-submit input {
    width: 100%;
    max-width: 15rem;
    border: 1px rgb(223, 238, 245) solid;
    padding: .4rem .6rem ;
    border-radius: 2rem;
    box-sizing: border-box;
}


.mn-submit button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--breadcrumb-blue);
    padding: .8rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 100%;
    color: var(--white);
    font-size: 14px;
    margin-left: -2rem;
}


#main-nav-right a {
    color: var(--blue-2);
    font-weight: 530;
}

#main-nav-right button {
    border: 1.5px var(--blue-2) solid ;
    padding: .4rem .8rem;
    border-radius: .6rem;
    transition: .5s all;
}

#main-nav-right button:hover {
    background-color: color-mix(in srgb, var(--discover-blue) 7%, transparent);
}

.mobile-menu {
    position: relative;
}

.menu {
    font-size: 2rem;
    display: none;
}

.show-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        width: 15rem;
        gap: .8rem;
        z-index: 2;
        background-color: var(--white);
        box-shadow: 0px 0px 4px rgba(37, 37, 37, 0.07);
        padding:  1rem;
    }

.menu-toggle {
        display: flex;
}


/* =========================
   Header
==========================*/
.header {
    /* background: linear-gradient(to right, var(--pale-green), var(--border-blue)); */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-inline: var(--space);
    margin-top: calc(var(--space));
    /* border-radius: .6rem; */
    overflow: hidden;
}

.hr-heading .hr-heading-top {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.header-left {
    position: relative;
}

.header-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-img {
    height: 33rem;
    border-radius: .4rem;
    overflow: hidden;
}

.header-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.line-before {
    height: .2rem;
    background-color: var(--breadcrumb-blue);
    width: 3rem;
    border-radius: 4rem;
}

.hr-heading-top span {
    color: var(--light-blue);
    font-weight: 540;
}

.hr-heading h2{
    font-size: 2.5rem;
}

.hr-heading p {
    color: var(--breadcrumb);
}

.hr-heading button{
    margin-block: .6rem;
    background-color: var(--bcolour);
    color: var(--color);
    padding: .4rem .8rem;
    border-radius: .4rem;
    transition: all .5s ease-in-out;
}

.hr-heading button:hover {
    background-color: color-mix(in srgb, var(--bcolour) 75%, transparent);
    transform: translateY(-.2rem);
}

.impact-stats {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stats {
    border: 1px solid var(--ad-right);
    padding: 2rem;
    border-radius: 1rem;
}

.stats h3 {
    font-size: 2rem;
}


/* card code */
.card-code {
    position: absolute;
    bottom: 2%;
    left: 1.5%;
    right: 1.5%;
    /* width: 100%; */
}

.code-header {
    background:  #1e293b;
    padding: 0 .6rem;
    height: 2rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    border-top-left-radius: .4rem;
    border-top-right-radius: .4rem;
}

/* .code-circles {
    display: flex;
    gap: 1rem;
} */

.circle {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #facc15;
}

.green {
    background: #22c55e;
}

.code-file-name {
    color: #cbd5e1;
    font-size: 14px;
    margin-left: 15px;
}

pre {
    margin: 0 !important;
    padding: .4rem !important;
    background: #0f172a !important;
    height: 16rem;
    border-bottom-left-radius: .4rem;
    border-bottom-right-radius: .4rem;
    overflow-x: hidden;
}


code {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.7;
}

.cursor {
      display: inline-block;
      width: .02rem;
      height: 18px;
      background: var(--white);
      margin-left: 3px;
      animation: blink 0.8s infinite;
      vertical-align: middle;
    }

    @keyframes blink {
      0%, 50% {
        opacity: 1;
      }

      51%, 100% {
        opacity: 0;
      }
    }


/* =========================
   About Us
==========================*/ 
.about{
    margin: var(--space);
    margin-top: 7rem;
}

.about-body, .ab-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    width: fit-content;
    padding: .55rem 1.2rem;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--ad-left);
    box-shadow: 0 1px rgba(13, 171, 173, 0.12), 0 -1px rgba(0, 0, 0, 0.12);
    /* color: var(--light-blue); */
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08rem;
}

.about-box {
    height: .7rem;
    width: .7rem;
    border-radius: 50%;
    background-color: var(--light-blue);
    box-shadow: 0 0 0 5px rgba(25, 94, 179, 0.12);
}

.about-body h2 {
    font-size: 2.5rem;
    margin-top: .8rem;
    font-weight: bold;
}

.body-color {
    color: var(--light-blue);
}

.ab-content p {
    color: var(--breadcrumb);
}

svg {
    fill: white;
}

.about-flex-boxes, .afb-box {
    display: flex;
    justify-content: space-around;
}

.afb-box {
    align-items: center;
    background-color: var(--white);
    box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.08);
    padding: .6rem;
    gap: .6rem;
    margin-top: 2rem;
    border-radius: .8rem;
}
.afb-left .img {
    width: 5rem;
    height: 5rem;
    background-color: var(--bgcolor);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    color: var(--white);
}

.afb-left .img img {
    height: 2rem;
    width: 2rem;
    filter: brightness(0) invert(1);
}

.afb-right p:first-child {
    font-weight: bold;
}

.afb-right p:nth-child(2) {
    color: var(--breadcrumb);
}

.about-footer {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.about-images {
    position: relative;
    width: 100%;
    max-width: 48rem;
    height: 32rem;
}

.img1,
.img2 {
    border-radius: 1rem;
    overflow: hidden;
}

.img1 {
    height: 100%;
    width: 100%;
    box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, 0.12);
}

.img2 {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    height: 20rem;
    width: 32rem;
    padding: .8rem;
    background-color: var(--white);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
}

.img1 img,
.img2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img2 img {
    border-radius: .7rem;
}

.ab-footer-content {
    padding-inline: .6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .8rem;
}

.ab-footer-content h2 {
    font-weight: bold;
    color: var(--breadcrumb);
    text-transform: uppercase;
}


.ab-footer-content .list-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--breadcrumb);
}

.ab-footer-content .list-item i {
    font-size: 1.2rem;
    /* color: var(--alt-green); */
}

.lead-instructor {
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
    padding: 2rem;
    border-radius: .8rem;
}

.lead-img {
    width: 8rem;
    height: 8rem;
    overflow: hidden;
    border: 2px solid var(--ad-right);
    border-radius: .4rem;
}

.lead-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-content p {
    color: var(--alt-green);
    font-weight: bold;
    margin-block: .2rem;
}

p.small {
    font-size: .8rem;
    color: var(--breadcrumb);
}

.view {
    background-color: var(--light-blue);
    width: fit-content;
    padding: .4rem .6rem;
    border-radius: .4rem;
    color: var(--white);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
    transition: all .5s ease-in-out;
}

.view:hover {
    background-color: color-mix(in srgb, var(--light-blue) 75%, transparent);
}

@media screen and (max-width: 1004px) {
    #main-nav {
        padding-inline: 2rem;
    }
}

@media screen and (max-width: 875px) {
    #main-nav-right > a,#main-nav-right> button {
        display: none;
    }
    .mn-start {
        display: none;
    }
    .menu {
        display: block;
    }

    .mn-submit-menu {
        display: none;
    }

    
}


/* =========================
   Testimonials
========================= */
.testimonials {
    margin-inline: var(--space);
    margin-block-start: 10rem;
    min-height: 30rem;
}

.testimonials-box {
    display: flex;
    position: relative;
    justify-content: space-between;
    width: 100%;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.tb-card {
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
    padding: .4rem 2rem;
    background-color: var(--white);
    width: 30rem;
    border-radius: .6rem;
}

.tb-card-img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    overflow: hidden;
}

.tb-card-person {
    margin-top: .8rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.tb-card-details {
    display: flex;
    align-items: center;
}

.quote {
    font-weight: bold;
    font-size: 4rem;
}

.stars i{
    color: gold;
}

.person-details h2  {
    font-weight: bold;
}

.person-details p {
    color: var(--white);
    background-color: var(--breadcrumb-blue);
    width: fit-content;
}

.flip {
    transform: rotate(180deg);
}

.person-last {
    justify-content: flex-end;
}

.card-absolute {
    position: absolute;
    bottom: -4rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-block: .6rem;
}

/* =========================
   Contact
========================= */
.contact {
    position: relative;
    margin-inline: var(--space);
}

.contact-info-left {
    margin-block: 1rem;
    width: 40vw;
}

.contact-info-left h2{
    font-weight: bold;
    font-size: 2rem;
    color: var(--dark-grey-2);
}

.contact-info-left p {
    color: var(--breadcrumb);
}

.contact-info-bottom {
    margin-top: 2rem;
}

.contact-info-bottom li {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-block: 1rem;
    color: var(--light-blue);
}

li {
    list-style-type: none;
}

#form {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background-color: var(--white);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
    position: absolute;
    right: 2rem;
    top: 2rem;
    border-radius: .8rem;
    gap: 2rem;
    z-index: 2;
}

#form h2 {
    font-weight: bold;
    color: var(--light-blue);
    font-size: 2rem;
}

#form input, #form textarea {
    width: 20rem;
    border: 1px solid var(--border-blue);
    padding: .6rem .8rem;
    border-radius: .2rem;
}

#form textarea {
    resize: none;
    min-height: 8rem;
}

#form button {
    background-color: var(--breadcrumb-blue);
    padding: .6rem;
    color: var(--white);
    transition: all .5s ease-in-out;
}

#form button:hover {
    background-color: color-mix(in srgb, var(--breadcrumb-blue) 75%, transparent);
}

/* =========================
   Footer
========================= */

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--white);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
    margin-top: 6rem;
    padding: 3rem 6rem;
    color: var(--breadcrumb-blue);
    min-height: 10rem;
}

.follow h2{
    font-weight: bold;
    font-size: 2rem;
}

.follow-links {
    display: flex;
    gap: 2rem;
}
.services {
    /* margin-top: 5rem; */
    display: flex;
    justify-content: space-between;
}

/* .copyright {
    text-align: center;
} */



/* glow */
.cursor-glow {
    position: fixed;
    width: 250px;
    height: 250px;
    background: rgba(0, 120, 255, 0.10);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100;
}




@media screen and (max-width: 630px) {
    .mn-submit-close {
        display: none;
    }

    .show-menu {
        width: fit-content;
    }

    .mn-submit-menu {
        display: flex;
    }
}


/* ===========================================================================
   Courses
=============================================================================*/
/* header */
.courses-header {
    position: relative;
    margin-block: var(--space);
    padding-inline: var(--space);
    overflow: hidden;
    padding-bottom: 4rem;
}

.ch-down {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8rem;
    background-color: var(--ad-right);
    z-index: -1;
}

.breadcrumb {
    display: flex;
    gap: .4rem;
    align-items: center;
}

.breadcrumb a {
    font-weight: 530;
}

.b-back {
    text-decoration: underline;
    color: var(--breadcrumb-blue);
}

.ch-heading {
    margin-block: 1.5rem;
}

.ch-heading h2 {
    font-size: 3rem;
    width: 50vw;
}

.ch-heading span {
    color: var(--breadcrumb-blue);
}

.chh-buttons button{
    background-color: var(--bgColor);
    border: 1px solid var(--bgColor);
    color: var(--color);
    padding-block: .4rem;
    width: 6rem;
    border-radius: .6rem;
    transition: all .5s ease-in-out;
}

.chh-buttons button:hover {
    background-color: color-mix(in srgb, var(--bgColor) 60%, transparent);
}

.ch-body {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 2rem;
}

.ch-body .img-left {
    height: 25rem;
    overflow: hidden;
    border-radius: 1.5rem;
}

.ch-body-right {
    background-color: var(--discover-blue);
    padding: 2rem 1rem;
    border-radius: 1.5rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ch-body-right h2 {
    font-size: 2rem;
}
/* courses boxes */

/* ===========================================================================
   Login
=============================================================================*/
#login-page {
    /* background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(/images/lab.png); */
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#login {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 0 2rem rgba(25, 94, 179, 0.12);
    border-radius: .6rem;
    padding: 2rem 1rem;
    width: 22rem;
    z-index: 2;
    background-color: var(--white);
}

.login-img {
    margin-inline: auto;
    height: 6rem;
    width: 10rem;
    overflow: hidden;
}

.login-img img {
    height: 100%;
    width: 100%;
}

.error-message {
    text-align: center;
    background-color: #f8d7da;
    color: #842029;
    font-size: .8rem;
    padding: .6rem;
    border-radius: .2rem;
}

#login input {
    border: 1px solid var(--ad-right);
    padding: .6rem;
    border-radius: .4rem;
}

.form-bottom {
    display: flex;
    justify-content: space-between;
}

.form-bottom a {
    color: var(--breadcrumb-blue);
    text-decoration: underline;
}

.form-bottom button {
    background-color: var(--discover-blue);
    color: var(--white);
    text-transform: uppercase;
    padding: .4rem 2rem;
    border-radius: .4rem;
    transition: .5s all ease-in-out;
}

.form-bottom button:hover {
    background-color: color-mix(in srgb, var(--discover-blue) 75%, transparent);
}

.login-boxes {
    position: absolute;
    width: 20rem;
    height: 20rem;
    border: 2px solid var(--breadcrumb-blue);
    border-radius: 4rem;
    /* background: linear-gradient(to right, var(--breadcrumb-blue), var(--ad-right)); */
    transform: rotate(45deg);
}

.left-box {
    left: -10%;
    top: 40%;
}

.right-box {
    right: -10%;
    top: 15%;
}
/* ==========================================================================
   TechByte Express/EJS updates
   Keeps the original blue/white card style, but adds the new navigation,
   home courses section, application modal, and stronger responsiveness.
============================================================================= */

body {
    overflow-x: hidden;
}

section {
    scroll-margin-top: 7rem;
}

#logo {
    display: block;
    flex: 0 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-weight: 600;
}

.nav-links a,
.show-menu a {
    position: relative;
    transition: color .3s ease-in-out;
}

.nav-links a:hover,
.show-menu a:hover {
    color: var(--breadcrumb-blue);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -.35rem;
    width: 0;
    height: .12rem;
    border-radius: 999px;
    background: var(--breadcrumb-blue);
    transition: width .3s ease-in-out;
}

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

.nav-apply-btn,
.show-menu button,
.footer-button-link {
    border: 1.5px var(--blue-2) solid;
    padding: .45rem .9rem;
    border-radius: .6rem;
    transition: .5s all;
    color: var(--blue-2);
    font-weight: 600;
}

.footer-button-link {
    padding: 0;
    border: none;
    color: inherit;
}

.nav-apply-btn:hover,
.show-menu button:hover {
    background-color: color-mix(in srgb, var(--discover-blue) 7%, transparent);
}

.menu {
    align-items: center;
    justify-content: center;
    color: var(--breadcrumb-blue);
}

.hr-heading h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-text);
    line-height: 1.1;
    margin-block: .6rem;
}

.button-link {
    display: inline-block;
    margin-block: .6rem;
    background-color: var(--bcolour);
    color: var(--color);
    padding: .4rem .8rem;
    border-radius: .4rem;
    transition: all .5s ease-in-out;
}

.button-link:hover {
    background-color: color-mix(in srgb, var(--bcolour) 75%, transparent);
    transform: translateY(-.2rem);
}

.toast-message {
    position: fixed;
    top: 5.3rem;
    right: 1rem;
    z-index: 300;
    max-width: 24rem;
    padding: .8rem 1rem;
    border-radius: .6rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
    font-size: .9rem;
    background: var(--white);
}

.toast-message.success {
    border-left: .35rem solid var(--alison-green);
    color: var(--alt-green);
}

.toast-message.error {
    border-left: .35rem solid #842029;
    color: #842029;
}

.toast-message.notice {
    border-left: .35rem solid var(--breadcrumb-blue);
    color: var(--breadcrumb-blue);
}

/* Courses section */
.courses {
    margin: var(--space);
    margin-top: 7rem;
}

.section-top-row {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.section-top-row h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-text);
    line-height: 1.15;
    margin-top: .8rem;
}

.section-top-row p {
    color: var(--breadcrumb);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.course-card {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    background: var(--white);
    border: 1px solid var(--border-blue);
    border-radius: 1rem;
    padding: 1.4rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.08);
    transition: transform .4s ease-in-out, box-shadow .4s ease-in-out;
}

.course-card:hover {
    transform: translateY(-.35rem);
    box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.14);
}

.course-card-top,
.course-meta,
.course-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
}

.course-pill,
.course-level {
    padding: .35rem .65rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.course-pill {
    color: var(--breadcrumb-blue);
    background: var(--light-blue-2);
}

.course-level {
    color: var(--alt-green);
    background: var(--pale-green);
}

.course-card h3 {
    color: var(--heading-text);
    font-size: 1.35rem;
    font-weight: 700;
}

.course-card p,
.course-meta,
.course-price-row small {
    color: var(--breadcrumb);
}

.course-meta {
    justify-content: flex-start;
    font-size: .9rem;
}

.course-meta i {
    color: var(--breadcrumb-blue);
}

.course-price-row {
    margin-top: auto;
    border-top: 1px solid var(--discover-border);
    padding-top: .8rem;
}

.course-price-row strong {
    color: var(--breadcrumb-blue);
    font-size: 1.5rem;
}

.course-card .view {
    margin-top: .2rem;
}

/* Contact layout fix for EJS */
.contact-layout {
    position: relative;
    min-height: 31rem;
}

#form input[type="tel"] {
    width: 20rem;
    border: 1px solid var(--border-blue);
    padding: .6rem .8rem;
    border-radius: .2rem;
}

/* Register modal */
.apply-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.apply-modal.modal-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(5px);
}

.modal-card {
    position: relative;
    width: min(62rem, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.35);
    padding: 2rem;
    z-index: 2;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-blue-2);
    color: var(--breadcrumb-blue);
    border-radius: 50%;
}

.modal-heading {
    margin-bottom: 1.5rem;
}

.modal-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-text);
    margin-top: .8rem;
}

.modal-heading p {
    color: var(--breadcrumb);
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.register-form label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    color: var(--heading-text);
    font-weight: 700;
    font-size: .9rem;
}

.register-form input,
.register-form select,
.register-form textarea {
    width: 100%;
    border: 1px solid var(--border-blue);
    border-radius: .45rem;
    padding: .75rem .85rem;
    color: var(--grey);
    background: var(--white);
    font-weight: 400;
}

.register-form textarea {
    min-height: 7rem;
}

.register-submit {
    width: fit-content;
    align-self: flex-end;
    background-color: var(--breadcrumb-blue);
    color: var(--white);
    padding: .75rem 1.2rem;
    border-radius: .55rem;
    transition: all .4s ease-in-out;
}

.register-submit:hover {
    transform: translateY(-.2rem);
    background-color: color-mix(in srgb, var(--breadcrumb-blue) 75%, transparent);
}

.simple-page {
    margin: calc(var(--space) + 3rem) var(--space) var(--space);
    min-height: 50vh;
}

.simple-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-text);
}

.simple-page p {
    margin-block: 1rem;
    color: var(--breadcrumb);
}

/* Stronger responsiveness */
@media screen and (max-width: 1150px) {
    :root {
        --space: 3rem;
    }

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

    .about-footer {
        align-items: center;
    }

    .img2 {
        width: 25rem;
        right: -1rem;
    }

    .testimonials-box {
        gap: 1rem;
    }

    .tb-card {
        width: 100%;
    }
}

@media screen and (max-width: 900px) {
    #main-nav {
        padding-inline: 1.2rem;
    }

    .desktop-nav-links,
    .nav-apply-btn {
        display: none;
    }

    .menu {
        display: flex;
    }

    .header,
    .about-body,
    .ab-content,
    .section-top-row {
        grid-template-columns: 1fr;
    }

    .header {
        margin-top: 6rem;
    }

    .hr-heading h1,
    .about-body h2,
    .section-top-row h2 {
        font-size: 2.1rem;
    }

    .impact-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .stats {
        padding: 1.2rem;
    }

    .about-flex-boxes {
        flex-direction: column;
        gap: 1rem;
    }

    .afb-box {
        justify-content: flex-start;
        width: 100%;
    }

    .about-footer {
        flex-direction: column;
    }

    .about-images {
        max-width: 100%;
    }

    .testimonials {
        margin-block-start: 6rem;
        min-height: auto;
    }

    .testimonials-box {
        flex-direction: column;
    }

    .card-absolute {
        position: static;
        transform: none;
    }

    .person-last {
        justify-content: flex-start;
    }

    .contact-layout {
        min-height: auto;
    }

    .contact-info-left {
        width: 100%;
    }

    #form {
        position: static;
        margin-top: 2rem;
        width: 100%;
    }

    #form input,
    #form textarea,
    #form input[type="tel"] {
        width: 100%;
    }
}

@media screen and (max-width: 700px) {
    :root {
        --space: 1.2rem;
    }

    #main-nav-left,
    #main-nav-right {
        gap: 1rem;
    }

    #logo {
        width: 7rem;
    }

    .show-menu {
        width: 13rem;
    }

    .header-img {
        height: 26rem;
    }

    pre {
        height: 12rem;
    }

    code {
        font-size: 13px;
    }

    .impact-stats,
    .courses-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .stats h3 {
        font-size: 1.6rem;
    }

    .img2 {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 15rem;
        margin-top: 1rem;
        padding: .5rem;
    }

    .about-images {
        height: auto;
    }

    .img1 {
        height: 20rem;
    }

    .lead-instructor {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .contact-info-bottom li {
        gap: 1rem;
        align-items: flex-start;
    }

    footer {
        padding: 2rem 1.2rem;
    }

    .services {
        flex-direction: column;
        gap: .8rem;
    }

    .modal-card {
        padding: 1.2rem;
    }

    .register-submit {
        width: 100%;
    }
}

@media screen and (max-width: 430px) {
    .hr-heading h1,
    .about-body h2,
    .section-top-row h2,
    .modal-heading h2 {
        font-size: 1.75rem;
    }

    .header-img {
        height: 22rem;
    }

    .card-code {
        display: none;
    }

    .course-card,
    #form,
    .modal-card {
        border-radius: .75rem;
    }
}

/* =========================
   Shared Platform Additions
========================= */
.nav-login {
  color: var(--blue-2);
  font-weight: 700;
}

.portal-info,
.student-dashboard {
  margin-inline: var(--space);
  margin-top: 6rem;
}

.portal-grid,
.dashboard-mini-cards,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.portal-grid article,
.student-hero-card,
.panel-card,
.stat-card,
.request-card,
.payment-account-card {
  padding: .4rem;
  background: var(--white);
  border: 1px solid var(--border-blue);
  border-radius: 1rem;
  box-shadow: 0 0 8px 2px rgba(0,0,0,.06);
}

.portal-grid article {
  padding: 1.4rem;
}

.portal-grid i {
  color: var(--light-blue);
  font-size: 2rem;
}

.portal-grid h3,
.student-hero-card h1,
.panel-card h2,
.request-card h3 {
  color: var(--heading-text);
  font-weight: 900;
}

.portal-grid p,
.muted,
.request-card p,
.student-hero-card p {
  color: var(--paragraph-text);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  width: min(100%, 50rem);
  max-height: 92vh;
  overflow: auto;
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .25);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pale-blue);
  color: var(--breadcrumb-blue);
  font-size: 1.6rem;
}

.modal-card h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-top: 1rem;
  color: var(--heading-text);
}

.modal-form,
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea,
.stack-form input,
.stack-form select,
.stack-form textarea,
.student-auth-card input {
  border: 1px solid var(--border-blue);
  padding: .75rem .85rem;
  border-radius: .5rem;
  background: var(--white);
  width: 100%;
}

.modal-form textarea,
.stack-form textarea {
  min-height: 7rem;
}

.auth-body {
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light-grey);
  position: relative;
}

.student-auth-card h1 {
  color: var(--heading-text);
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
}

.student-auth-card p {
  color: var(--paragraph-text);
  text-align: center;
}

.success-message,
.notice-message {
  text-align: center;
  padding: .6rem;
  border-radius: .2rem;
  font-size: .85rem;
}

.success-message {
  background: #d1e7dd;
  color: #0f5132;
}

.notice-message {
  background: #fff3cd;
  color: #664d03;
}

.small-text {
  font-size: .9rem;
}

.small-text a {
  color: var(--breadcrumb-blue);
  text-decoration: underline;
}

.student-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 3rem;
}

.student-hero-card {
  margin-top: 2rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-mini-cards {
  grid-template-columns: repeat(4, 1fr);
}

.panel-card,
.stat-card,
.request-card {
  padding: 1rem;
}

.stat-card h3 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--heading-text);
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
}

.two-cols {
  grid-template-columns: 1fr 1fr;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tag,
.status-pill {
  background: #d1e7dd;
  color: #0f5132;
  border-radius: 999px;
  padding: .3rem .65rem;
  font-size: .8rem;
  font-weight: 800;
}

.tag.blue,
.status-pill.Pending,
.status-pill.Reviewing,
.status-pill.Submitted,
.status-pill.Requested,
.status-pill.Waiting {
  background: var(--pale-blue);
  color: var(--breadcrumb-blue);
}

.status-pill.Rejected,
.status-pill.Cancelled,
.status-pill.Suspended {
  background: #f8d7da;
  color: #842029;
}

.payment-account-card,
.request-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: .7rem;
}

.payment-account-card p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-blue);
}

.payment-account-card span {
  color: var(--paragraph-text);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: .8rem;
  border-bottom: 1px solid var(--border-blue);
  white-space: nowrap;
}

th {
  color: var(--breadcrumb-blue);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .04rem;
}

.compact-form {
  margin-top: .7rem;
}

.simple-page {
  margin: 8rem var(--space);
}

@media screen and (max-width: 1050px) {
  .portal-grid,
  .dashboard-mini-cards,
  .two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 760px) {
  .portal-info,
  .student-dashboard {
    margin-inline: 1rem;
  }

  .portal-grid,
  .dashboard-mini-cards,
  .two-cols,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .student-hero-card,
  .section-top-row,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-card {
    padding: 1rem;
  }
}
