/* Header */
@media (max-width: 767px) {
    .brand img {
        max-width: 140px !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .brand img {
        max-width: 110px !important;
        height: auto !important;
    }
}

@media (max-width: 767px) {
    .container,
    .section .container,
    section .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 767px) {
    .post-classic-media {
        height: 180px !important;
    }
}

@media (max-width: 480px) {
    .post-classic-media {
        height: 150px !important;
    }
}

@media (max-width: 767px) {
    .post-classic-media {
        height: 180px !important;
        background-position: right center !important;
    }
}

.rd-nav-item.active .rd-nav-link,
.rd-nav-item.active .rd-nav-link:hover {
    color: #f57c00 !important;
}


/* Blog card date/category links: the theme gray is too light on white */
.post-classic-meta a,
.post-classic-meta time {
    color: #595959 !important;
}

/* Contact form labels: theme gray fails on the light gray section bg */
.form-label-outside {
    color: #595959 !important;
}

.button-primary,
.button-primary:hover,
.btn-primary,
.btn-primary:hover {
    color: #212529 !important;
}

/* Push logo to far left, add space between logo and menu */
.rd-navbar-main {
    justify-content: space-between;
}

.rd-navbar-panel {
    margin-right: auto;
}


/* The slide-out panel itself */
.rd-navbar-fixed .rd-navbar-nav-wrap,
.rd-navbar-fixed .rd-navbar-nav {
    background: #1b3a57 !important;
}

/* Every link in the panel: top level and dropdown rows */
.rd-navbar-fixed .rd-navbar-nav .rd-nav-link,
.rd-navbar-fixed .rd-navbar-nav .rd-dropdown-link,
.rd-navbar-fixed .rd-navbar-nav li > a {
    color: #ffffff !important;
    background: transparent !important;
}

/* Current page highlight - amber, not the light orange used on desktop */
.rd-navbar-fixed .rd-navbar-nav .rd-nav-item.active > .rd-nav-link,
.rd-navbar-fixed .rd-navbar-nav .rd-nav-item.active > .rd-nav-link:hover,
.rd-navbar-fixed .rd-navbar-nav li.active > a {
    color: #ffb74d !important;
}

/* Tap / hover state so a pressed row is obvious */
.rd-navbar-fixed .rd-navbar-nav li > a:hover,
.rd-navbar-fixed .rd-navbar-nav li > a:focus,
.rd-navbar-fixed .rd-navbar-nav li > a:active {
    color: #ffb74d !important;
    background: #24506f !important;
}

.rd-navbar-fixed .rd-navbar-dropdown {
    background: #24506f !important;
}

/* The theme's injected expand/collapse arrow on rows with submenus */
.rd-navbar-fixed .rd-navbar-submenu-toggle,
.rd-navbar-fixed .rd-navbar-submenu-toggle::after {
    color: #ffffff !important;
}

/* Row separators so the white links do not run together */
.rd-navbar-fixed .rd-navbar-nav > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.rd-navbar-fixed .rd-navbar-nav-wrap,
.rd-navbar-fixed .rd-navbar-nav {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.rd-navbar-fixed .rd-navbar-nav > li,
.rd-navbar-fixed .rd-navbar-nav > li > a {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Comfortable tap target: ~48px tall, text indented 20px from the edge */
.rd-navbar-fixed .rd-navbar-nav li > a {
    display: block !important;
    padding: 14px 20px !important;
}

.rd-navbar-fixed .rd-navbar-dropdown .rd-dropdown-link {
    padding-left: 36px !important;
}

.rd-navbar-nav .rd-nav-link {
    text-transform: none !important;
}

.rd-navbar-fixed .brand img {
    max-height: 48px !important;
    width: auto !important;
}

/* Footer */
.footer-share-link {
    display: inline-block;
    margin: 0 10px;
    font-size: 20px;
    color: #8899aa;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}
.footer-share-link:hover { transform: scale(1.2); }
.footer-share-link:hover .fa-facebook  { color: #3b5998; }
.footer-share-link:hover .fa-twitter   { color: #1da1f2; }
.footer-share-link:hover .fa-linkedin  { color: #0077b5; }
.footer-share-link:hover .fa-pinterest { color: #bd081c; }
.footer-share-link:hover .fa-reddit    { color: #ff4500; }
.footer-share-link:hover .fa-envelope  { color: #f7941d; }

.footer-advanced-aside .list-nav a {
    text-transform: none !important;
}
