html {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

header {
    border-block-end: thin solid #444;
}

/* Combined common styles to remove duplication while preserving effects */

header nav ul, footer ul, #carousel {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

header nav ul, footer ul {
    font-size: 1.05rem;
}

.social-tile {
    max-height: 2rem;
}

#main-content-area aside a img {
    width: auto;
    min-width: 0;
    min-height: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: black;
    height: 60px;
    justify-content: space-between;
    display: flex;
    padding: 5px 0;
    

    #branding-subhead {
        display: none;
    }

    #mobile-menu-toggle {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #mobile-menu-toggle-button {
        cursor: pointer;
        font-size: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        user-select: none;
        margin-inline-end: 3rem;
    }

    nav {
        display: none;

        ul {
            background-color: #000000;
            width: 100vw;
            display: flex;
            flex-direction: column;
            border-bottom: solid thin white;

            li {
                white-space: nowrap;
                display: block;
                border-top: solid thin white;
                a {
                    display: block;
                    position: relative;
                    padding: 0.5em 3em;
                    text-decoration: none;
                    color: white;
                }

                a::before {
                    content: '';
                    position: absolute;
                    width: 100%;
                    height: 4px;
                    border-radius: 4px;
                    background-color: #cc99ff;
                    bottom: 0;
                    left: 0;
                    transform-origin: right;
                    transform: scaleX(0);
                    transition: transform .3s ease-in-out;
                }

                a:hover::before {
                    transform-origin: left;
                    transform: scaleX(1);
                }

                a.linkedin::before,
                a.youtube::before {
                    transition: none;
                    background-color: transparent;
                }

                a.current::before {
                    transform: scaleX(1);
                    transition: none;
                }

                .social-tile {
                    margin-top: .4rem;
                }
            }
            li:hover, li:focus {
                background-color: #000000;
            }
            li:active {
                background-color: #000000;
                a {
                    color: #ffffff;
                }
            }
            li.nav-divider {
                display: none;
            }
        }
    }

    #mobile-menu-toggle:checked ~ nav {
        display: flex;
        position: absolute;
        width: 100vw;
        top: 4rem;
        left: 0;
    }

    #branding {
        margin-inline-start: 3rem;
        h1 {
            margin: 0;
            padding: 0;
        }
        p {
            margin: -0.25em 0 0 0;
        }
    }
}
/*NAVIBAR LOGO SIZE BEGINS*/
#branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.branding-logo {
    height: 40px;   /* adjust to fit your navbar */
    width: auto;    /* keeps aspect ratio */
}
/*NAVIBAR LOGO SIZE ENDS*/



/*BEGIN CAROUSEL CSS??*/
body{
    margin:0;
}

.carousel-container{
    width:100%;
}
/*END CAROUSEL CSS??*/

body {
    background-color: #000000;
    margin: 0;
    margin-top: 70px;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 70px);

    main {
        flex-grow: 1;
        #main-content-area {
            padding: 1.5em 3em;
            background-color: rgb(0, 0, 0);
            article {
                h1 {
                    margin-top: 0;
                    color: #ffffff;
                    font-size: 2.7em;
                    line-height: 1.15em;
                    span {
                        color: #cc99ff;
                    }
                }
                p {
                    line-height: 1.5em;
                }
            }

            aside {
                margin-top: 2em;
                display: grid;
                grid-template-columns: 1fr 1fr;
                max-width: 100%;
                place-items: center;
                gap: 2rem;
                
                a img {
                    max-width: 20vw;
                }
            }

            .video-area {
                border-block-start: 1px solid #ccc;
                margin: 1.5em 0 0 0;

                .video-info h2 {
                    color: #ffffff;
                }

                .embedded-video {
                    max-width: 100%;
                }
            }
        }

    }

    footer {
        font-size: 0.75rem;
        border-top: thin solid #444;
        ul {
            padding: 0.5rem 3rem;
            display: flex;
            flex-direction: row;
            align-content: flex-end;

            li {
                padding: 0 0.25rem;

                a {
                    color: white;
                }
            }

            li:first-child {
                margin-inline-start: auto;
            }
        }
    }
}

@media only screen and (min-width: 576px) {
    body main #main-content-area aside {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        
        a {
            display: block;
        }
        
                a img {
                    max-width: 40vw;
                }
    }
}

@media only screen and (min-width: 768px) {
    body main #main-content-area {
        .video-info {
            margin-right: 1em;
            
            h2 {
                margin-top: 0;
            }
        }
        .video-area {
            padding: 1.5em 0 0 0;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }
        .card-row {
            width: 100%;
        }
    }
}

@media only screen and (min-width: 1024px) {
    body main {
        #main-content-area {
            max-width: 1024px;
            margin: 0 auto;
            aside {
                display: flex;
                justify-content: space-between;
                gap: 15px;
                
                a {
                    display: block;
                }
            }
            article {
                p {
                    max-width: 50em;
                }
            }
        }
    }
}

@media only screen and (min-width: 1280px) {
    body nav ul li a::before {
        bottom: 10px;
    }
    header {
        #branding-subhead {
            display: block;
        }
    }

    header #mobile-menu-toggle-button {
        display: none;
    }

    header nav{
        justify-content: flex-end;
        display: block;
        margin-right: 3rem;

        ul {
            width: auto;
            background-color: transparent;
            height: 100%;
            position: static !important;
            top: auto !important;
            flex-direction: row;
            align-items: center;
            border-bottom: none;

            li {
                height: 100%;
                border: none;
                padding: 0 0.7rem;

                a {
                    height: 100%;
                    display: flex;
                    align-items: center;
                    padding: 0;
                }
                .social-tile {
                    margin: auto 0;
                }
            }
            li.nav-divider {
                height: 100%;
                display: flex;
                align-items: center;
            }
        }
    }
}


#carousel {
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: row;

    li {
        display: flex;

        img {
            width: 100vw;
        }
    }
}