/* ==========================================================================
   OPA Child Template - Custom CSS
   Supplements theme.opa.less to match the template design.
   Layout: Full Width (Forte is boxed - we override to full width here).
   ========================================================================== */

/* Google Fonts: Raleway (used for headings and navigation)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');


/* CSS Custom Properties (palette)
   ========================================================================== */

:root {
    --opa-orange:        #f67b35;   /* primary highlight/accent */
    --opa-orange-dark:   #d45e1a;   /* hover state */
    --opa-text:          #040404;   /* near-black body text */
    --opa-muted:         #686868;   /* secondary/muted text */
    --opa-bg:            #ffffff;   /* white background */
    --opa-bg-muted:      #F5F5F5;   /* light gray alternate background */
    --opa-border:        #E0DFDF;   /* light gray border */
    --opa-footer-bg:     #2B2B2B;   /* footer background */
    --opa-bottom-bg:     #373737;   /* bottom-most footer / breadcrumb bg */
}


/* Full Width Layout Override
   ========================================================================== */
/* Old template Forte was boxed (max 1400px with outer bg #505050).
   yootheme_opa must be Full Width - no outer container restriction. */

.tm-page-container .tm-page,
.tm-page-container .tm-page-width,
.tm-page-width {
    max-width: none !important;
}

.tm-page-container {
    background: var(--opa-bg) !important;
}


/* Global Typography
   ========================================================================== */

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;            /* 170% */
    color: var(--opa-text);
    background: var(--opa-bg);
}

/* Links */
a,
.uk-link {
    color: var(--opa-orange);
    text-decoration: none;
}

a:hover,
.uk-link:hover {
    color: var(--opa-orange-dark);
    text-decoration: underline;
}


/* Headings
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6,
.uk-heading-small, .uk-heading-medium, .uk-heading-large,
.uk-heading-xlarge, .uk-heading-2xlarge, .uk-heading-3xlarge {
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 700;
    color: var(--opa-text);
    line-height: 1.3;             /* 130% heading line-height */
}

h1, .uk-h1 { font-size: 2.3rem; }   /* 2.3em */
h2, .uk-h2 { font-size: 2.1rem; }   /* 2.1em */
h3, .uk-h3 { font-size: 1.8rem; }   /* 1.8em */
h4, .uk-h4 { font-size: 1.5rem; }   /* 1.5em */
h5, .uk-h5 { font-size: 1.1rem; }   /* 1.1em */
h6, .uk-h6 { font-size: 1rem; }


/* Navbar / Navigation
   ========================================================================== */

/* Navbar container - white background with bottom border (Forte style) */
.uk-navbar-container:not(.uk-navbar-transparent) {
    background: #ffffff !important;
    border-bottom: 1px solid var(--opa-border);
}

/* Nav items - gray text, Raleway font, 82px height */
.uk-navbar-nav > li > a {
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--opa-muted);
    min-height: 82px;
    padding: 0 20px;
    text-transform: none;
}

/* Nav hover / active */
.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li > a:focus,
.uk-navbar-nav > li.uk-active > a {
    color: var(--opa-orange);
}

/* Active item background highlight — orange bg + white text */
.uk-navbar-nav > li.uk-active > a,
.uk-navbar-nav > li.current > a,
.uk-navbar-nav > li.active > a {
    background: var(--opa-orange) !important;
    color: #ffffff !important;
}

/* Navbar dropdown */
.uk-navbar-dropdown {
    background: #ffffff;
    border: 1px solid var(--opa-border);
    box-shadow: 4px 4px rgba(0, 0, 0, 0.15);  /* dropdown shadow */
    padding: 12px 15px;
}

.uk-navbar-dropdown-nav > li > a {
    font-size: 0.95rem;
    color: #727272;
}

/* Dropdown hover: orange background + white text (matching Forte) */
.uk-navbar-dropdown-nav > li > a:hover,
.uk-navbar-dropdown-nav > li.uk-active > a {
    background: var(--opa-orange);
    color: #ffffff !important;
}


/* Buttons
   ========================================================================== */
/* Buttons: rounded (30px), orange primary, 0.9em font */

.uk-button {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 30px !important;  /* 30px rounded corners — !important overrides UIkit's hardcoded 0 */
    padding: 11px 35px 8px;      /* 8px 35px + 11px top */
    line-height: 26px;
    border: none;
    cursor: pointer;
    letter-spacing: 0;
    text-decoration: none;
    box-shadow: none;
    transition: all 200ms ease-in;
    text-transform: none;
}

.uk-button-primary {
    background: var(--opa-orange);
    color: #ffffff !important;
    border: none;
}

.uk-button-primary:hover,
.uk-button-primary:focus {
    background: var(--opa-orange-dark);
    color: #ffffff !important;
}

.uk-button-secondary {
    background: #373737;         /* readon_black */
    color: #ffffff !important;
    border: none;
}

.uk-button-secondary:hover,
.uk-button-secondary:focus {
    background: #505050;
    color: #ffffff !important;
}

.uk-button-default {
    background: #F5F5F5;         /* readon_grey */
    color: var(--opa-text) !important;
    border: none;
}

.uk-button-default:hover,
.uk-button-default:focus {
    background: #e0e0e0;
    color: var(--opa-text) !important;
}


/* Cards & Sections
   ========================================================================== */

.uk-card-default {
    background: var(--opa-bg);
}

.uk-section-default {
    background: var(--opa-bg);
}

.uk-section-muted {
    background: var(--opa-bg-muted);
}

.uk-section-secondary {
    background: var(--opa-bottom-bg);  /* #373737 */
    color: #ffffff;
}

.uk-section-primary {
    background: var(--opa-orange);
    color: #ffffff;
}

/* grey line between image and content */
.uk-card-media-top {
    border-bottom: 1px solid #f5f5f5;
}

/* Dividers & Borders
   ========================================================================== */

.uk-hr,
hr {
    border-top-color: var(--opa-border);
}

.uk-divider-small::after,
.uk-divider-icon::before,
.uk-divider-icon::after {
    border-top-color: var(--opa-border);
}


/* Forms
   ========================================================================== */

.uk-input,
.uk-textarea,
.uk-select {
    background: #ffffff;
    border: 1px solid #DAD9D9;   /* form border color */
    color: var(--opa-text);
    font-size: 0.9rem;
    padding: 12px;
    border-radius: 0;
    min-height: 40px;
}

.uk-input:focus,
.uk-textarea:focus,
.uk-select:focus {
    background: #FBFAFA;         /* focus background */
    border-color: #DAD9D9;
    color: var(--opa-text);
}


/* Header Area
   ========================================================================== */

.tm-header,
.tm-headerbar-top,
.tm-headerbar-bottom {
    background: #ffffff;
}

/* Sticky header keeps white background */
.tm-header.uk-sticky-fixed {
    background: #ffffff;
    border-bottom: 1px solid var(--opa-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* Footer
   ========================================================================== */
/* primary footer #2B2B2B dark, bottom footer #373737 */

.tm-footer {
    background: var(--opa-footer-bg);
    color: #ffffff;
    font-size: 0.9rem;
    padding: 40px 0;
}

.tm-footer a,
.tm-footer .uk-link {
    color: #ffffff;
}

.tm-footer a:hover,
.tm-footer .uk-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.tm-footer h1, .tm-footer h2, .tm-footer h3,
.tm-footer h4, .tm-footer h5, .tm-footer h6 {
    color: #ffffff;
}


/* Breadcrumb bar
   ========================================================================== */
/*
 * a full-width #373737 dark bar between the navbar and page content.
 * padding: 13px 40px 10px | color: white | font-weight: 400
 *
 * .tm-breadcrumb-bar is output by yootheme_opa/templates/breadcrumbs.php.
 * The full-bleed technique makes it span 100vw regardless of the parent
 * container's max-width — matching Forte's structural full-width bar.
 */

.tm-breadcrumb-bar {
    background: var(--opa-bottom-bg);   /* #373737 — breadcrumb bar */
    color: #ffffff;
    font-weight: 400;
    font-size: 1rem;

    /* Full-bleed: extend to viewport edges even inside a centered container */
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;

    /* padding: 13px top, 40px sides, 10px bottom */
    padding: 13px 40px 10px;
}

/* Remove UIkit's default bottom margin from the nav inside the bar */
.tm-breadcrumb-bar nav {
    margin-bottom: 0;
}

/* Breadcrumb list: display inline (UIkit default is fine, just ensure no extra spacing) */
.tm-breadcrumb-bar .uk-breadcrumb {
    margin: 0;
    padding: 0;
}

/* All breadcrumb text: white */
.tm-breadcrumb-bar .uk-breadcrumb > * > *,
.tm-breadcrumb-bar .uk-breadcrumb > * > a,
.tm-breadcrumb-bar .uk-breadcrumb > * > span {
    color: #ffffff;
    font-size: 1rem;
    text-decoration: none;
}

/* Hover: Forte uses white text on hover (orange only for links in this context) */
.tm-breadcrumb-bar .uk-breadcrumb > * > a:hover {
    color: var(--opa-orange);
    text-decoration: none;
}

/* Last (active) item: white, not a link */
.tm-breadcrumb-bar .uk-breadcrumb > :last-child > span,
.tm-breadcrumb-bar .uk-breadcrumb > :last-child > a:not([href]) {
    color: #ffffff;
}

/* Separator «»: generated by UIkit via ::before on nth-child(n+2) */
.tm-breadcrumb-bar .uk-breadcrumb > :nth-child(n+2):not(.uk-first-column)::before {
    color: #ffffff;
    margin: 0 8px;             /* padding: 0px 8px on .divider */
}


/* Module / Widget titles
   ========================================================================== */

.uk-panel-title,
.uk-card-title {
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 700;
    color: var(--opa-text);
}


/* Sidebar navigation (column menus)
   ========================================================================== */

.uk-nav-default > li > a {
    font-size: 1rem;
    color: var(--opa-text);
    border-bottom: 1px solid var(--opa-border);
    padding: 14px 24px 15px;
    font-weight: 400;
}

.uk-nav-default > li > a:hover,
.uk-nav-default > li.uk-active > a {
    background: var(--opa-orange);
    color: #ffffff;
    border-color: var(--opa-orange);
}


/* Responsive
   ========================================================================== */

@media (max-width: 959px) {
    body {
        font-size: 0.9rem;          /* smaller on tablet */
    }

    h1, .uk-h1 { font-size: 1.8rem; }
    h2, .uk-h2 { font-size: 1.6rem; }
    h3, .uk-h3 { font-size: 1.4rem; }
}

/* Homepage Slider / Top Section
   ========================================================================== */

.tm-top.uk-section {
    padding-top: 0;
    padding-bottom: 0;
}

#homepage-slider {
    background-color: #505050;
}

#homepage-slider h3.el-title.uk-h1.uk-margin-top.uk-margin-remove-bottom,
#homepage-slider .el-meta.uk-text-meta.uk-margin-remove-top,
#homepage-slider p
{
    color: white!important;
    text-shadow: 2px 2px 2px #000000;
}

.home-featured-article .uk-container {
    padding: 30px;
    border: 1px solid lightgrey;
}


/* Members menu
   ========================================================================== */

ul.uk-navbar-nav#membersmenu > li > a {
    color: inherit;
    text-decoration: none;
}

ul.uk-navbar-nav#membersmenu > li.uk-active > a,
ul.uk-navbar-nav#membersmenu > li.uk-active > a:hover {
    background: #4b79a9 !important;
    color: #ffffff !important;
}

ul.uk-navbar-nav#membersmenu > li:not(.uk-active) > a:hover {
    background: #2d5b8b !important;
    color: #ffffff !important;
}


/* Mobile hamburger menu */
.uk-offcanvas-bar {
    background: #414141;          /* mobile sidebar background */
    color: #ffffff;
}

.uk-offcanvas-bar a {
    color: #ffffff;
}

.uk-offcanvas-bar a:hover,
.uk-offcanvas-bar .uk-active > a {
    color: var(--opa-orange);
}
