html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Martel', serif;
}
    
a {
    text-decoration: none;
    color: #404040;
    display: block;
}

h1 {
    color: #1a1f27;
    font-size: 20px;
    font-weight: 900;
}

ul {
    list-style: none;
    position: relative;
    text-align: left;
}

li {
    float: left;
}

ul:after {
    clear: both;
}

ul:before,
ul:after {
    content: " ";
    display: table;
}

nav {
    position: relative;
}

ul.primary li a {
    display: block;
    padding: 10px 30px;
    /* border-right: 1px solid #3D3D3D; */
}

ul.primary li:last-child a {
    border-right: none;
}

ul.primary li a:hover {
    color: #000;
    cursor: pointer;
}

ul.primary > li a:hover {
    box-shadow: none;
}

ul.primary li a, .ul.sub li a {
    user-select: none;
}

.option {
    padding-bottom: 12px;
}

.option:hover {
    box-shadow: inset 0 -5px 0 #c69651;
}

.option-open {
    background-color: #1a1f27;
    box-shadow: inset 5px 0 0 #c69651;
}

.option .fas {
    display: none;
}

ul.sub {
    width: 35%;
    display:none;
    position: absolute;
    margin-left: -40px;
    padding-top: 12px;
    /* box-shadow: 2px 2px 0 #bebebe; */
    z-index: 200;
}

ul.sub li {
    float: none;
    margin: 0;
}

ul.sub li a {
    /* border-bottom: 1px dotted #ccc; */
    border-right: none;
    color: #000;
    padding: 15px 30px;
}

ul.sub li:last-child a {
    border-bottom: none;
}

ul.sub li a:hover {
    color: #333;
    /* background: #eeeeee; */
}

/* Sub Display */
ul.primary li:hover ul {
    display: block;
    /* background: #fff; */
}

ul.primary li:hover a {
    background: rgba(26,31,39,0.9);
    color: #fff;
    text-shadow: none;
    transition: 0.25s;
}

ul.primary li:hover > a {
    color: #c69651;
    background-color: #fff;
} 

ul.primary li:hover > a:first-child{
    background-color: #fff;
} 

section {
    width: 100%;
}

hr {
    width: 50%;
    margin: 20px auto;
}

.bold {
    font-weight: bold !important;
}

.normal {
    font-weight: normal !important;
}


/* HEADER */
#header {
    height: 75px;
    display: flex;
}

#logo {
    flex: 1;
    margin-left: 5px;
    padding-top: 10px;
}

#logo a {
    width: fit-content;
}

#navbar {
    display: block;
    flex: 3;
}

#navbar-hamburger {
    display: none;
}

.hamburger {
    padding: 15px 15px 10px 15px;
}

.hamburger-box, .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px !important;
}

.primary {
    float: right;
}


/* HERO */
#hero {
    height: 85vh;
    position: relative;
    align-items: center;
    justify-content: center;
    background: url('/assets/images/background.png') center;
}

#hero-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
}

.hero-tagline {
    width: 55%;
    height: 65px;
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    padding: 5px;
    background-color: rgba(255,255,255,0.4);
    border: 1px solid #888;
    font-size: 24px;
    text-align: center;
    line-height: 34px;
    user-select: none;
}

.hero-tagline-1 {
    opacity: 1;
}

.hero-tagline-2 {
    opacity: 0;
}

.hero-extra-padding {
    padding: 10px;
}


/* ARTICLES */
#articles {
    padding: 0 0 25px 0;
    background: rgb(26,31,39);
}

#articles-header {
    color: #fff;
    text-align: center;
    padding: 25px 0;
    font-size: 24px;
}

#articles-header a {
    color: #fff;
    cursor: pointer;
}

.articles-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.articles-column {
    height: 300px;
    margin: 0 10px;
    position: relative;
    flex: 1;
    background-color: #ebebeb;
    background-size: cover !important;
    transition: 0.25s;
}

.articles-column:hover {
    filter: brightness(110%);
    cursor: pointer;
    transition: 0.25s;
}

.articles-column-date {
    width: 60%;
    display: none;
    position: absolute;
    top: 5px;
    text-shadow: 2px 2px #000;
}

.articles-column-date, .articles-column-summary {
    background-color: rgba(26,31,39,0.7);
}

.articles-column-summary {
    position: absolute;
    width: 100%;
    /* height: 25%; */
    bottom: 5px;
}

.articles-column-summary-title {
    text-shadow: 2px 2px #000;
}

.articles-column-date, .articles-column-summary-title {
    padding: 5px;
    color: #fff;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
}

#articles-footer {
    width: 100%;
    padding-top: 25px;
    font-size: 18px;
    text-align: center;
}

#articles-footer a {
    color: #c69651;
    
}

#articles-footer a:hover {
    filter: brightness(125%);
    transition: 0.25s;
}

.article1 {
    background: url('/assets/images/benjie-_-GAhOE_yPbFA-unsplash.jpg');
}

.article2 {
    background: url('/assets/images/jan-antonin-kolar-ehHp54qsE6c-unsplash.jpg');
}

.article3 {
    background: url('/assets/images/nat-weerawong-0cZgvYHirBg-unsplash.jpg');
}

.article4 {
    background: url('/assets/images/photo-1554224154-22dec7ec8818.jpg');
}

.article5 {
    background: url('/assets/images/photo-1615915468538-0fbd857888ca.jpg');
}

.article6 {
    background: url('/assets/images/BUILDING6.JPG');
}

.article7 {
    background: url('/assets/images/jonathan-roger-LY1eyQMFeyo-unsplash.jpg');
}

.article8 {
    background: url('/assets/images/pedro-lastra-Nyvq2juw4_o-unsplash.jpg');
}


/* CONTACT */
#contact {
    display: flex;
    padding: 25px 0;
    background-color: #ebebeb;
}

#contact-left, #contact-right {
    width: 50%;
}

#contact-info {
    float: right;
    font-size: 28px;
}

#contact-info-title {
    margin: 0;
    font-weight: 900;
}

.contact-info-subtitle {
    margin: -5px 0 15px 0;
    font-size: 18px;
}

.contact-info-header {
    margin: 0;
    color: #c69651;
    font-size: 18px;
    font-weight: 900;
}

.contact-info-header a {
    vertical-align: middle;
    display: table-cell;
}

.contact-info-content {
    margin: 0 0 20px 0;
    font-size: 18px;
}

.contact-info-content:hover a {
    color: #000;
    transition: 0.25s;
}

.contact-info-linkedin-logo {
    float: left;
    margin-right: 10px;
}

.contact-info-linkedin-tag {
    float: left;
    margin-top: 10px;
}

.contact-info-linkedin-logo:hover, .contact-info-linkedin-tag:hover {
    filter: brightness(125%);
    color: #1a1f27;
}

#contact-form {
    position: relative;
    width: 45%;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-left: 25px;
}

#contact-form input {
    flex: 1;
    height: 15px;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
}

#contact-form input:hover {
    color: #000;
    background-color: #ddd;
}

#contact-form label {
    color: #404040;
}

#contact-form #contact-form-message {
    height: 75px;
    padding: 11px;
    font-size: 16px;
    resize: vertical;
}

#contact-form #contact-form-message::placeholder {
    font: 400 16px Arial;
}

.contact-form-field {
    text-align: center;
}

#contact-form-optin {
    display: flex;
    padding: 5px 0;
}

#contact-form-optin-left {
    flex: 1;
    padding-top: 3px;
}

#contact-form-optin-right {
    flex: 10;
}

#optin-checkbox {
    transform: scale(1.35);
}

#optin-message {
    display: inline-block;
    font-size: 12px;
    text-align: left;
}

#contact-form #submit {
    height: 40px;
    margin-top: 5px;
    font-weight: bold;
    cursor: pointer;
}

#contact-form input[type=submit] {
    flex: 1;
}

#contact-success {
    height: 120px;
    position: absolute;
    display: none;
    margin: auto;
    padding: 5px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: center;
    background: #1a1f27;
    color: #fff;
    font-weight: bold;
    text-align: center;
    z-index: 1;
}

#footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    background: rgb(26,31,39);
}

#footer-copyright {
    color: #c69651;
    font-size: 14px;
    text-align: center;
}



/* MEDIA QUERIES */
@media screen and (min-width: 1600px) {
    #logo {
        padding-top: 5px;
    }
    
    h1 {
        font-size: 24px;
    }

    .articles-column-date {
        width: 50%;
    }
}

@media screen and (max-width: 1150px) {
    #logo {
        margin-left: 15px;
        padding-top: 5px;
    }

    h1 {
        font-size: 24px;
    }

    /* Navbar */
    #navbar {
        width: 45%;
        position: absolute;
        display: none;
        margin-top: 75px;
        right: 0;
        background: rgb(26,31,39,0.9);
        transition: 0.5s;
        z-index: 1000;
    }

    #navbar-hamburger {
        display: block;
        margin: 9px 2px 0 0;
    }

    .hamburger {
        padding: 17px 15px 13px 15px !important;
    }

    .primary {
        width: 100%;
        margin: 5px 0;
    }

    .primary li {
        width: 100%;
        text-align: center;
    }

    .primary li a {
        color: #fff;
    }

    .option:hover {
        box-shadow: none;
    }

    .option:hover a {
        box-shadow: inset 5px 0 0 #c69651 !important;
    }

    .option .fas {
        display: block;
        float: right;
        margin: 15px 15px 0 0;
        color: #fff;
        transition: 0.5s;
    }

    ul.primary li:hover ul {
        display: none;
    }

    ul.primary li:hover a {
        background: none;
    }

    ul.primary li:hover > a {
        background-color: #1a1f27;
    }
    
    ul.primary li:hover > a:first-child{
        background-color: #1a1f27;
    } 

    .option {
        padding-bottom: 0;
    }

    ul.sub {
        width: 100%;
        position: relative;
        padding-top: 0px;
        background-color: transparent;
    }

    ul.sub li {
        transition: 0.5s;
    }
    ul.sub li:hover {
        transition: 0.5s;
    }

    ul.sub li a {
        padding-top: 10px;
        padding-bottom: 10px;
        color: #fff;
        background: rgba(51,61,76,0.75,0.5) !important;
        transition: 0.5s;
    }


    /* Hero */    
    #hero {
        height: 80vh;
    }

    .hero-tagline {
        width: 99%;
        padding: 0;
    }

    .hero-extra-padding {
        padding: 15px 0;
    }

    #articles {
        padding-bottom: 20px;
    }

    #articles-header {
        padding: 15px 0;
        font-size: 24px;
    }

    .articles-row {
        flex-wrap: wrap;
    }

    .articles-column {
        flex: 40%;
        margin: 0 10px 20px 10px;
    }

    #articles-footer {
        padding-top: 0;
        font-size: 16px;
    }

    #contact {
        padding: 25px 0 15px 0;
    }

    #contact-info {
        float: none;
        text-align: center;
    }

    #contact-info-title {
        font-size: 22px;
    }

    .contact-info-subtitle {
        padding-bottom: 15px;
    }

    .contact-info-subtitle, .contact-info-header, .contact-info-content {
        font-size: 16px;
    }

    .contact-info-linkedin {
        width: 100%;
    }

    .contact-info-linkedin a {
        display: flex;
        justify-content: center;
    }

    #contact-form {
        width: 85%;
    }
}

@media screen and (max-width: 600px) {
    #logo {
        padding-top: 10px;
    }

    h1 {
        margin-top: 15px;
        font-size: 17px;
    }

    #navbar {
        width: 100%;
    }

    #hero {
        height: 75vh;
    }

    .hero-tagline {
        height: fit-content;
        padding-top: 2px;
        font-size: 20px;
    }

    .hero-extra-padding {
        padding: 5px 0;
    }
    
    .tagline {
        width: 80%;
        line-height: 28px;
    }

    #articles {
        height: max-content;
        padding-bottom: 15px;
    }

    #articles-header {
        padding: 10px 0;
        font-size: 20px;
    }

    .articles-row {
        flex-wrap: wrap;
    }

    .articles-column {
        flex: 95%;
        margin-bottom: 15px;
    }
    
    #articles-footer {
        padding-top: 5px;
    }

    #contact {
        flex-wrap: wrap;
    }

    #contact-left, #contact-right {
        flex: 100%;
        margin-bottom: 25px;
    }

    #contact-info {
        float: none;
        text-align: center;
    }

    #contact-info-title {
        line-height: 36px;
        margin-bottom: 10px;
    }

    .contact-info-subtitle {
        font-size: 16px;
    }

    .contact-info-linkedin {
        width: 60%;
        margin: auto;
    }
    
    .contact-info-linkedin a {
        display: initial;
    }

    .contact-info-linkedin-logo {
        float: none;
        margin: 0;
    }

    .contact-info-linkedin-tag {
        width: 100%;
        margin: 0;
    }

    #contact-form {
        width: 88%;
        margin: auto;
        text-align: center;
    }
}