@charset "utf-8";
/* ======================================================================
   Houston Journal of International Law Stylesheet
   ====================================================================== */


/* ======================================================================
   DESKTOP NAVIGATION
   ====================================================================== */

.main-nav {
    background-color: #222;
    color: #fff;
    padding: .5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* Required for dropdowns */
    position: relative;
    z-index: 9999;
    overflow: visible !important;
}

/* W3.CSS override */
.main-nav.w3-bar {
    overflow: visible !important;
}

.main-nav .nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    flex-wrap: wrap;
    gap: .25rem;

    position: relative;
    z-index: 9999;
    overflow: visible;
}

.main-nav .w3-button {
    margin-left: 0 !important;
}

.main-nav .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color .25s ease;
}

.main-nav .nav-links a:hover {
    color: #c8102e;
}


/* ======================================================================
   MOBILE NAVIGATION
   ====================================================================== */

.main-nav-mobile {
    background: #222;
    color: #fff;
    padding: .5rem 0;
    text-align: center;
}

.main-nav-mobile a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: .5rem 0;
    font-weight: 500;
}

.main-nav-mobile a:hover {
    color: #c8102e;
}

.main-nav-mobile details {
    border-top: 1px solid rgba(255,255,255,.20);
}

.main-nav-mobile summary {
    color: #fff;
    cursor: pointer;
    padding: .65rem 0;
    font-weight: 600;
    list-style: none;
}

.main-nav-mobile summary::-webkit-details-marker {
    display: none;
}

.main-nav-mobile details a {
    padding: .45rem 0;
}


/* ======================================================================
   DROPDOWN MENUS
   ====================================================================== */

.hjil-dropdown {
    position: relative;
    display: inline-block;
    overflow: visible;
    z-index: 10000;
}

.hjil-dropdown > a {
    color: #fff;
}

.hjil-dropdown-menu {

    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    min-width: 220px;

    background: #fff;

    border: 1px solid #d6d6d6;

    box-shadow: 0 8px 18px rgba(0,0,0,.18);

    z-index: 10001;
}

.hjil-dropdown-menu a {
    display: block;
    padding: .7rem .95rem;
    color: #222 !important;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
}

.hjil-dropdown-menu a:hover,
.hjil-dropdown-menu a:focus {
    background: #f5f5f5;
    color: #c8102e !important;
}

.hjil-dropdown:hover .hjil-dropdown-menu,
.hjil-dropdown:focus-within .hjil-dropdown-menu {
    display: block;
}


/* ======================================================================
   HERO
   ====================================================================== */

.hero-section {
    position: relative;
    background-image: url("images/hero-background.jpg");
    background-size: cover;
    background-position: center;
    height: 70vh;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    color: #fff;

    padding-right: 5%;
}

.hero-overlay {
    background: rgba(0,0,0,.55);
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.hero-text h1 {
    font-family: "League Spartan", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
}


/* ======================================================================
   MASTHEAD
   ====================================================================== */

.masthead-figure {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: center;
}

.masthead-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 1.25rem;
}

.masthead-text {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ddd;
}

.masthead-text h3 {
    margin-top: 0;
    color: #c8102e;
}


/* ======================================================================
   CONTACT PAGE
   ====================================================================== */

.contact-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-card {
    background: #fff;
    border-left: 5px solid #c8102e;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.contact-card h2 {
    margin-top: 0;
    font-size: 1.25rem;
}


/* ======================================================================
   PAGE CONTENT
   ====================================================================== */

.w3-content,
.uhslate {
    position: relative;
    z-index: 1;
}


/* ======================================================================
   RESPONSIVE
   ====================================================================== */

@media screen and (max-width:768px) {

    .hero-section {
        justify-content: center;
        height: 50vh;
        padding-right: 0;
    }

    .hero-overlay {
        max-width: 90%;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

}