/*
Theme Name: Divi Child By Humanity Media
Description: A child theme to house custom coding which modifies the Divi parent theme by Elegant Themes. Includes css examples and a snippets floder which contains php, css and js code snippets to help with development of the child theme.
Author:   Anthony Bear https://humanitymedia.net
Template: Divi
*/

@import url("../Divi/style.css");

/** ------------ GLOBAL CODE --------------- **/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display SC';
}

p,
p * {
    font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
    font-size: 14px;
}

input.text,
input.title,
input[type=email],
input[type=password],
input[type=tel],
input[type=text],
select,
textarea {
    font-style: italic;
}

/* Header */

.div-header {
    z-index: -3;
}

#headersticky.sticky {
    position: fixed;
    top: 30px;
    z-index: 999;
}

header {
    width: 100%;
    display: block;
    float: left;
    position: fixed;
    top: 0;
    z-index: 99;
}


.et_pb_menu--with-logo .et_pb_menu__menu>nav>ul>li>a {
    font-size: 13px;
    font-family: 'Playfair Display SC', Georgia, "Times New Roman", Times, serif;
    color: #777;
}

.mtphr-dnt-scroll-left .mtphr-dnt-tick,
.mtphr-dnt-scroll-right .mtphr-dnt-tick {
    color: #fff;
}

.et_pb_menu__logo {
    margin-bottom: -78px !important;
    display: block !important;
    overflow: visible !important;
}

.page-id-1639 #header-custom {
    position: relative !important;
}

@media (max-width: 768px) {
    .et_pb_menu_inner_container {
        display: flex;
    }

    .et_pb_menu__logo img {
        width: 150px;
    }

    .et_pb_menu .et_pb_menu__wrap {
        justify-content: flex-end !important;
    }
}

/* ---- Custom Login & Reset Password UI ---- */
.custom-login,
.custom-reset-password {
    max-width: 520px;
    margin: 40px auto;   
	margin-top: 160px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.custom-login-title,
.custom-reset-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 600;
}

.custom-login-form form,
.custom-reset-password form {
    display: block;
}

.custom-login-links {
    margin-top: 12px;
    font-size: 14px;
}

.custom-login-link {
    color: #8b4513;
}

.custom-login-link:hover {
    text-decoration: underline;
}

.custom-login-error {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #ef4444;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 8px;
}

.custom-login-success {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #22c55e;
    background: #f0fdf4;
    color: #166534;
    border-radius: 8px;
}

.custom-reset-password form p {
    margin: 0 0 14px;
}

.custom-reset-password label {
    display: block;
    margin: 0 0 6px;
    font-weight: 500;
}

.custom-reset-password input[type="text"],
.custom-reset-password input[type="password"],
.custom-reset-password input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.custom-reset-password .button.button-primary {
    background: #8b4513;
    border-color: #8b4513;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
}

.custom-reset-password .button.button-primary:hover {
    background: #72380f;
    border-color: #72380f;
}

/* Slider */
/* .bg_overlay:before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1;
    opacity: 0.7;
} */

.et_pb_slide_image img {
    border-radius: 0px !important;
    border: 1px solid #fff;
    padding: 5px;
    display: none !important;
}

.et_pb_menu_0.et_pb_menu ul li a:hover {
    color: #c74d22 !important;
}

.et_pb_slides .et_pb_container {
    display: flex !important;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.et_pb_slide_description {
    display: none !important;
}

.et_pb_slide_image {
    text-align: center;
    width: 100%;
}

/* stable-roster */
.stable-roster-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Custom Dashboard Layout ===== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.dashboard-sidebar {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    position: sticky;
    top: 24px;
    height: fit-content;
}

.dashboard-nav ul {
    list-style: none !important;
    margin: 0;
    padding: 0 !important;
}

.dashboard-nav .nav-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #ddd;
    text-decoration: none;
    border-radius: 8px;
    transition: background 200ms ease, color 200ms ease;
}

.dashboard-nav .nav-item a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.dashboard-nav .nav-item.active a {
    background: rgba(196, 156, 28, 0.15);
    color: #fff;
    border: 1px solid rgba(196, 156, 28, 0.35);
}

.dashboard-content {
    min-width: 0;
}

.dashboard-widget .widget-header h3 {
    margin: 0;
    color: #000;
}

.dashboard-widget.widget-wide {
    grid-column: 1 / -1;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.form-grid label {
    color: #000;
}

.form-grid p {
    margin: 0;
}

.form-grid p.wide {
    grid-column: 1 / -1;
}

.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="url"],
.form-grid input[type="password"],
.form-grid textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #fff;
    color: #000;
}

.notice {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.notice-success,
.notice.notice-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.35);
}

.notice-error,
.notice.notice-error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.35);
}

@media (max-width: 980px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Enhanced Dashboard Styles ===== */
/* Container */
.dashboard-container {
    display: block;
    gap: 24px;
    margin: 60px 0;    
	margin-top: 160px;
}

/* Header */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(196, 156, 28, 0.08), rgba(196, 156, 28, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.dashboard-title .entry-title.main_title {
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.dashboard-subtitle {
    color: #aaa;
    margin: 0;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-user-info .user-avatar img {
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(196, 156, 28, 0.35);
}

.dashboard-user-info .user-name {
    display: block;
    font-weight: 700;
}

.dashboard-user-info .user-role {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #c49c1c;
}

.dashboard-content .dz-message.needsclick,
.dashboard-content .dz-message.needsclick span,
.dashboard-content .dz-message.needsclick button {
    color: #000 !important;
}

.frm_form_field:not(.frm_compact) .frm_dropzone {
    max-width: 100%;
}

div#frm_field_27_container {
    height: 200px;
    overflow: auto;
}

/* Stats */
.dashboard-stats {
    margin-bottom: 22px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stat-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 156, 28, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(196, 156, 28, 0.15);
    color: #c49c1c;
}

.stat-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.stat-label {
    margin: 0;
    color: #bbb;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Grid + Widgets */
.dashboard-main {
    margin-top: 6px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-widget {
    background: #f4edd2;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-widget .widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-widget .widget-content {
    padding: 16px;
    overflow: auto;
}

.widget-refresh {
    background: transparent;
    border: 0;
    color: #bbb;
    cursor: pointer;
}

.widget-refresh:hover {
    color: #fff;
}

.dashboard-widget.widget-wide {
    grid-column: 1 / -1;
}

.dashboard-widget .widget-content .btn-status {
    font-size: 12px;
    margin: 0px;
    margin-bottom: 10px;
    text-transform: capitalize;
    width: 132px;
}

.btn-status-green {
    background-color: green !important;
}

.btn-status-orange {
    background-color: orange !important;
}

/* Activity List */
.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    color: #c49c1c;
    flex: 0 0 auto;
}

.activity-title {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.activity-title:hover {
    text-decoration: underline;
}

.activity-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Tables (View All Users) */
.dashboard-content table {
    width: 100%;
    border-collapse: collapse;
    background: #0b0b0b;
}

.dashboard-content table th,
.dashboard-content table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-content table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #bbb;
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-content table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dashboard-content .tablenav {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0 0;
}

.dashboard-content .pagination-links a {
    color: #c49c1c;
    text-decoration: none;
    margin: 0 6px;
}

.dashboard-content .pagination-links a:hover {
    text-decoration: underline;
}

/* Buttons */
.dashboard-content .button,
.dashboard-content button,
.dashboard-content .button-primary {
    margin-top: 30px;
    display: inline-block;
    border: 1px solid #8b4513;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
    font-weight: 500;
    padding: .3em 1em;
    line-height: 1.7em !important;
    color: #FFFFFF !important;
    border-color: #8b4513;
    border-radius: 12px;
    background-color: #8b4513;
    text-transform: uppercase;
    cursor: pointer;
}

.dashboard-content .button:hover,
.dashboard-content button:hover {
    filter: brightness(0.95);
}

.dashboard-content .button:active,
.dashboard-content button:active {
    transform: translateY(1px);
}

@media (max-width: 980px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Dashboard style fixes and missing pieces ===== */
/* Sidebar nav spacing */
.dashboard-nav .nav-item {
    margin-bottom: 6px;
}

.dashboard-nav .nav-item:last-child {
    margin-bottom: 0;
}

/* Form selects and focus states */
.form-grid select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
}

.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="url"],
.form-grid input[type="password"],
.form-grid textarea {
    border: 1px solid #ddd;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.15);
}

/* Activity list colors adapted for light widgets */
.activity-item {
    border-bottom: 1px solid #eae3cc;
}

.activity-icon {
    background: rgba(139, 69, 19, 0.1);
    color: #8b4513;
}

.activity-title {
    color: #8b4513;
}

.activity-date {
    color: #5a4639;
}

/* Tables (View All Users) on light background */
.dashboard-content table {
    background: #fff;
    color: #2c1810;
}

.dashboard-content table th,
.dashboard-content table td {
    border-bottom: 1px solid #e8dfc8;
}

.dashboard-content table thead th {
    color: #8b4513;
    background: #f7f2e3;
}

.dashboard-content table tbody tr:hover {
    background: #faf6ea;
}

.dashboard-content .pagination-links a {
    color: #8b4513;
}

.stable-roster-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stable-roster-item {
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--card-bg, #0b0b0b);
    transition: transform 400ms ease, box-shadow 400ms ease, border-color 400ms ease;
}

.stable-roster-grid.cols-2 .stable-roster-item {
    flex: 0 0 calc(50% - 20px);
}

.stable-roster-grid.cols-4 .stable-roster-item {
    flex: 0 0 calc(25% - 20px);
}

.stable-roster-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    border-color: rgba(196, 156, 28, 0.5);
}

/* gradient overlay covering full card */
.stable-roster-item .stable-roster-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    opacity: 0.6;
    transition: opacity 500ms ease;
    z-index: 2;
}

.stable-roster-item:hover .stable-roster-thumbnail::before {
    opacity: 0.4;
}

.stable-roster-link {
    position: relative;
    z-index: 3;
    display: block;
    text-decoration: none;
    color: inherit;
}

/* media */
.stable-roster-thumbnail {
    position: relative;
    height: 18rem;
    overflow: hidden;
}

.stable-roster-grid.cols-4 .stable-roster-thumbnail {
    height: 15rem;
}

.stable-roster-grid.cols-2 .stable-roster-thumbnail {
    height: 30rem;
}

.stable-roster-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
    display: block;
}

.stable-roster-item:hover .stable-roster-thumbnail img {
    transform: scale(1.1);
}

/* badge pill top-right */
.stable-roster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(196, 156, 28, 0.9);
    color: #181818;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: saturate(120%) blur(6px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 5;
    line-height: 1;
    font-weight: 400;
    font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
}

/* caption bottom area */
.stable-roster-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem;
    transform: translateY(8px);
    transition: transform 500ms ease;
    z-index: 4;
    pointer-events: none;
    text-align: left;
}

.stable-roster-item:hover .stable-roster-caption {
    transform: translateY(0);
}

.stable-roster-title {
    margin: 0px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.stable-roster-stats {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    transition: opacity 500ms ease 100ms;
}

.clear {
    clear: both;
}

.stable-roster-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stable-roster-popup-content {
    background: white;
    padding: 0;
    /* modal handles its own padding */
    border-radius: 12px;
    width: min(1000px, calc(100% - 40px));
    max-height: 84vh;
    overflow: hidden;
    /* contain media + content */
    position: relative;
    padding: 24px 28px;
}

.stable-roster-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    background-color: transparent;
    border: none;
}

@media (max-width: 1360px) {
    .stable-roster-grid.cols-2 .stable-roster-thumbnail {
        height: 26rem;
    }

    .stable-roster-grid.cols-4 .stable-roster-thumbnail {
        height: 12rem;
    }
}

@media (max-width: 768px) {

    .stable-roster-item,
    .stable-roster-grid.cols-2 .stable-roster-item,
    .stable-roster-grid.cols-4 .stable-roster-item {
        flex: 0 0 100%;
    }

    .stable-roster-thumbnail,
    .stable-roster-grid.cols-4 .stable-roster-thumbnail,
    .stable-roster-grid.cols-2 .stable-roster-thumbnail {
        height: 386px;
    }
}

@media (max-width: 550px) {

    .stable-roster-thumbnail,
    .stable-roster-grid.cols-2 .stable-roster-thumbnail,
    .stable-roster-grid.cols-4 .stable-roster-thumbnail {
        height: 280px;
    }
}

/* ===== Popup modal layout: left image / right content ===== */
.stable-roster-modal {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    background: #fff;
    color: #111;
    height: 100%;
}

.stable-roster-modal-media {
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stable-roster-modal-img {
    /* position: absolute; */
    inset: 0;
    width: 100%;
    border-radius: 14px;
    /* height: 100%;
    object-fit: cover; */
}

.stable-roster-modal-content {
    padding-left: 28px;
    overflow-y: auto;
    text-align: left;
}

.stable-roster-badge--modal {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
}

.stable-roster-modal-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.2;
}

.stable-roster-stats--modal {
    margin: 0 0 14px 0;
    color: #444;
    opacity: 1;
}

.stable-roster-modal-body {
    font-size: 16px;
    line-height: 1.6;
}

.stable-roster-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 16px;
    background: #c49c1c;
    color: #111;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: filter 200ms ease;
}

.stable-roster-btn:hover {
    filter: brightness(0.95);
}

/* popup footer inside modal */
.stable-roster-popup-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fff;
}

.stable-roster-popup-footer .stable-roster-btn {
    margin: 0;
}

/* force popup on top of Divi stacking contexts */
#stable-roster-popup {
    position: fixed !important;
    z-index: 99999 !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    /* visible via JS */
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
}

.stable-roster-popup .stable-roster-popup-content {
    display: flex;
    flex-direction: column;
    width: min(1100px, 96%);
    max-height: 90vh;
    overflow: hidden;
}

.stable-roster-modal {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.stable-roster-popup-footer {
    flex-shrink: 0;
}

/* lock scroll when modal open */
.stable-roster-modal-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .stable-roster-modal-content {
        padding: 0px;
        padding-top: 28px;
        overflow: auto;
        height: 400px;
    }

    .stable-roster-modal {
        grid-template-columns: 1fr;
    }

}

/* news-updates */
.news-updates-item {
    text-align: center;
    /* background: #fff;
    border-width: 3px;
    border-style: solid;
    border-radius: 12px; */
    padding: 20px;
    margin-bottom: 20px;
    /* box-shadow: 0 0 #0000; */
    transition: all 0.3s;
    /* background-color:
        color-mix(in oklab, #f8f4e6 80%, transparent);
    border-color:
        color-mix(in oklab, #e5ddd0 50%, transparent); */
}

/* .news-updates-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px #0000001a;
    border-color:
        color-mix(in oklab, #c74d22 50%, transparent);
} */

.news-updates-cat {
    font-size: 12px;
    font-weight: 600;
    color: #8b4513;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-updates-title {
    padding: 0px;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 20px;
    line-height: 1.2;
    font-size: 2.3125rem;
}

@media (max-width: 780px) {
    .news-updates-title {
        font-size: 1.6875rem;
    }
}

.news-updates-title a {
    color: #c74d22;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
    text-transform: uppercase;
}

.news-updates-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 70%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    background: #ddd;
}

/* 
.news-updates-title a:hover {
    text-decoration: underline;
} */
/* 
.news-updates-item:hover .news-updates-title a {
    color: #c74d22;
} */

.news-updates-date {
    font-size: 13px;
    color: #777;
    display: block;
    padding: 10px 15px 15px 15px;
    font-family: 'Playfair Display SC', Georgia;
    margin: 0 auto;
    font-size: 16px;
}

.news-updates-excerpt {
    color: #555454;
    font-weight: 400;
    font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    width: 75%;
    margin: 0 auto;
    margin-bottom: 1.25rem;
}
.page-id-1975 .news-updates-excerpt{
	margin: 0px;
}
.page-id-1975 .news-updates-date{
padding-left: 0px;
}
.news-updates-cta .button {
    /* display: inline-block;
    border: 1px solid #8b4513; */
    /* text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
    font-weight: 500;
    padding: .3em 1em;
    line-height: 1.7em !important;
    color: #FFFFFF !important;
    border-color: #8b4513;
    border-radius: 12px;
    background-color: #8b4513;
    text-transform: uppercase; */
    color: #993300;
    font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

/* .news-updates-cta .button:hover {
    background-color: #c74d22;
    color: #fff;
} */
a.button.button--view-all {
    display: block;
    font-family: 'Playfair Display SC', Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    height: auto;
    line-height: 16px;
    text-align: center;
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;
}

a.button.button--view-all:before {
    content: '';
    height: 1px;
    width: 150px;
    display: block;
    background: #ddd;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.news-updates-viewall {
    text-align: center;
    margin-top: 40px;
}

.news-pagination {
    width: 100%;
    text-align: center;
}

.news-pagination .page-numbers {
    list-style: none;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0px;
}

.news-pagination .page-numbers .page-numbers {
    font-size: 16px;
    font-weight: bold;
    padding: 5px;
}

.news-updates-item-rows {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-width: 3px;
    border-style: solid;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 #0000;
    transition: all 0.3s;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.news-updates-item-rows:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px #0000001a;
    border-color:
        color-mix(in oklab, #c74d22 50%, transparent);
}

.news-updates-item-rows .news-updates-excerpt {
    margin-bottom: 0px;
}

.news-updates-item-cols {
    width: 90%;
}

.news-updates-item-cols:last-child {
    width: 8%;
    text-align: center;
}

@media (max-width: 980px) {
    .news-updates-item-cols {
        width: 100%;
    }

    .news-updates-item-cols:last-child {
        width: 100%;
    }
}

.news-updates-item-cols .news-updates-button svg {
    transform: rotate(180deg);
    fill: #8b4513;

}

.news-updates-item-cols .news-updates-date {
    margin-bottom: 10px;
}

.news-updates-item-cols .news-updates-title a {
    font-size: 24px;
}

/* BLog */
.et_right_sidebar #main-content .container:before {
    display: none;
}

.single-post div#content-area {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.et_right_sidebar #left-area {
    float: none !important;
    padding-right: 0px !important;
}

#newspages .news-updates-title a {
    color: #333;
}

#newspages .news-updates-date {
    color: #c74d22;
}

#newspages .news-updates-excerpt {
    text-align: left;
}

.single-post .entry-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 70%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    background: #ddd;
}

.single-post .entry-title {
    padding-bottom: 20px;
    position: relative;
    margin-bottom: 10px;
}

p.et_pb_title_meta_container,
p.et_pb_title_meta_container span {
    text-align: center;
    color: #c74d22;
    font-family: 'Playfair Display SC', Georgia, "Times New Roman", Times, serif;
    font-size: 14px;
}

/* ===== SINGLE POST TEMPLATE STYLES (RACE RESULTS DESIGN) ===== */

/* Single Post Article Container */
.single-post-article {
    max-width: 56rem;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

/* Race Results Badge */
.race-results-badge {
    position: relative;
    margin-bottom: 0;
    z-index: 10;
}

.category-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 0 8px 8px;
    position: relative;
    top: 0;
}

/* Entry Header */
.entry-post-header {
    margin-bottom: 34px;
}

.entry-post-title {
    font-size: 42px;
    font-weight: 700;
    color: #8b4513;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.entry-post-meta {
    margin-bottom: 20px;
    display: flex;
    align-content: center;
    align-items: center;
}

.entry-post-date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.entry-post-meta svg {
    color: #8b4513;
    width: 19px;
    margin-right: 8px;
}

/* Featured Image */
.featured-image {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 20px;
}

.race-featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.single-post-article:hover .race-featured-image {
    transform: scale(1.02);
}

/* Entry Content */
.entry-post-content {
    font-size: 18px;
    line-height: 1.6;
    background: #fff;
    border-width: 3px;
    border-style: solid;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 #0000;
    transition: all 0.3s;
    background-color:
        color-mix(in oklab, #f8f4e6 80%, transparent);
    border-color:
        color-mix(in oklab, #e5ddd0 50%, transparent);
    margin-top: 40px;
}

.entry-post-content p {
    margin-bottom: 20px;
}

.entry-post-content p:last-child {
    margin-bottom: 0;
}

/* Race Results Section */
.race-results-section {
    padding: 30px 40px;
    background: #f8f6f3;
    border-top: 1px solid #e5e5e5;
}

.race-results-section h3 {
    color: #8b4513;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.race-results-content {
    color: #555;
    line-height: 1.6;
}

/* Entry Footer */
.entry-post-footer {
    padding: 20px 40px 30px;
    border-top: 1px solid #e5e5e5;
}

.post-tags {
    margin-bottom: 0;
}

.tags-label {
    color: #666;
    font-weight: 600;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    margin: 2px 4px 2px 0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #e67e00;
    color: #fff;
}

/* Related Articles Section */
.et_pb_menu__logo a:hover {
    opacity: 1 !important;
}

.related-articles {
    max-width: 56rem;
    margin: 40px auto 40px;
}

.related-articles h3 {
    font-size: 28px;
    font-weight: 700;
    color: #8b4513;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.related-post-item {
    overflow: hidden;
    background: #fff;
    border-width: 3px;
    border-style: solid;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 #0000;
    transition: all 0.3s;
    background-color:
        color-mix(in oklab, #f8f4e6 80%, transparent);
    border-color:
        color-mix(in oklab, #e5ddd0 50%, transparent);
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px #0000001a;
    border-color:
        color-mix(in oklab, #c74d22 50%, transparent);
}

.related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-post-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.related-post-title {
    font-size: 18px;
    font-weight: 600;
    color: #8b4513;
    margin: 0 0 10px;
    line-height: 1.3;
    text-transform: uppercase;
}

.related-post-content-text {
    margin-bottom: 15px;
}

.related-post-date {
    color: #666;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    align-content: center;
}

.related-post-date svg {
    margin-right: 6px;
    color: #8b4513;
    width: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .single-post-article {
        border-radius: 12px;
    }

    .entry-post-title {
        font-size: 28px;
    }

    .entry-post-content,
    .race-results-section,
    .entry-post-footer {
        padding: 20px 25px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-articles {
        padding: 0 10px;
    }

    .category-badge {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .entry-post-title {
        font-size: 24px;
    }

    .entry-post-content {
        font-size: 16px;
    }

    .related-articles h3 {
        font-size: 24px;
    }

    .related-post-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 90%;
    }
}

button.frm_button_submit {
    display: inline-block;
    border: 1px solid #8b4513;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Lato' !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 14px 33px 14px 33px !important;
    line-height: 1.7em !important;
    color: #FFFFFF !important;
    border-color: #8b4513;
    border-radius: 99px !important;
    background-color: #8b4513;
    text-transform: uppercase;
}

/* error404 */
.error404 {
    padding-top: 150px;
}

/* ===== Custom Login Styles ===== */
.custom-login-page {
    max-width: 560px;
    margin: 100px auto;
}

.custom-login {
    background: #fff;
    color: #000;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.custom-login-title {
    margin-top: 0;
    margin-bottom: 14px;
    font-weight: 800;
}

.custom-login-form .login-username label,
.custom-login-form .login-password label,
.custom-login-form .login-remember label {
    color: #000;
}

.custom-login-form input[type="text"],
.custom-login-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.custom-login-form .login-remember {
    margin: 8px 0;
}

.custom-login-form .login-submit input[type="submit"] {
    background: #8b4513;
    border: 1px solid #8b4513;
    color: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.custom-login-form .login-submit input[type="submit"]:hover {
    background: #69340f;
    border-color: #69340f;
}

.custom-login-links {
    margin-top: 10px;
}

.custom-login-links .custom-login-link {
    color: #8b4513;
    text-decoration: none;
}

.custom-login-links .custom-login-link:hover {
    text-decoration: underline;
}

/* ================= Team Grid Styles ================ */
.team-grid-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.team-grid .team-grid-item {
    box-sizing: border-box;
    /* background: #f4edd2;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    padding: 20px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: space-between;
}

/* .team-grid .team-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
} */

.team-grid .team-grid-link {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 0px;
    text-align: center;
}

.team-grid .team-grid-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.team-grid .team-grid-title {
    margin: 10px 0 6px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: -1px;
    font-size: 1rem;
    font-family: 'Playfair Display SC', Georgia, "Times New Roman", Times, serif;
    color: #c74d22;
}

.team-grid .team-grid-excerpt {
    color: #555454;
    font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
    font-size: 14px;
    text-align: justify;
    line-height: 1.7;
}

/* Column widths by grid modifier */
.team-grid.cols-4 .team-grid-item {
    width: calc(25% - 23px);
}

.team-grid.cols-3 .team-grid-item {
    width: calc(33.333% - 13.333px);
}

.team-grid.cols-2 .team-grid-item {
    width: calc(50% - 10px);
}

.team-grid.cols-1 .team-grid-item {
    width: 100%;
}

@media (max-width: 980px) {

    .team-grid.cols-4 .team-grid-item,
    .team-grid.cols-3 .team-grid-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .team-grid .team-grid-item {
        width: 100% !important;
    }
}

/* Popup / Modal */
.team-grid-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    /* shown via JS as flex */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity .2s ease;
    padding: 20px;
}

html.team-grid-modal-open {
    overflow: hidden;
}

.team-grid-popup-content {
    position: relative;
    background: #fff;
    color: #000;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    padding: 20px;
}

.team-grid-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: 0;
    color: #000;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.team-grid-modal {
    display: grid;
    /* grid-template-columns: 1fr 1.2fr;
    gap: 18px; */
}

.team-grid-modal-media img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.team-grid-modal-title {
    margin: 0 0 10px;
    font-weight: 400;
    font-size: 1rem;
    font-family: 'Playfair Display SC', Georgia, "Times New Roman", Times, serif;
    color: #c74d22;
}

.team-grid-modal-body {
    line-height: 1.6;
    text-align: justify;
    font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
    font-size: 14px;
}

@media (max-width: 780px) {
    .team-grid-modal {
        grid-template-columns: 1fr;
    }
}

/* Team grid CTA */
.team-grid-cta {
    margin-top: 10px;
}

.team-grid-button {
    display: inline-block;
    /* padding: 4px 12px;
    border-radius: 99px;
    background: #8b4513;
    color: #fff !important; */
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: background .2s ease, transform .2s ease;
    font-family: 'Playfair Display SC', Georgia, "Times New Roman", Times, serif;
    color: #c74d22;
}

/* .team-grid-button:hover {
    background: #69340f;
    transform: translateY(-1px);
} */

/* Hx */
.frm_forms form .frm_form_fields .frm_form_field input,
.frm_forms form .frm_form_fields .frm_form_field textarea{ font-family: sans-serif; }

/* ===== News Ticker Styles ===== */
.news-ticker-container {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.news-ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 6px 0 ;
}

.news-ticker-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-ticker-items {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    will-change: transform;
}

.news-ticker-item {
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-size: 14px;
    line-height: 1.4;
    flex-shrink: 0;
}


.ticker-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Empty State */
.news-ticker-empty {
    padding: 15px;
    text-align: center;
    color: #fff;
    font-style: italic;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-ticker-container {
        flex-direction: column;
    }
    
    .news-ticker-label {
        width: 100%;
        justify-content: center;
    }
    
    .news-ticker-item {
        padding: 0 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-ticker-item {
        padding: 0 10px;
        font-size: 12px;
    }
}