/* ============================================================
   Aaron Beach Productions — Cassiopeia user.css
   Dark/red brand theme — professional DJ site
   ============================================================ */

/* --- Body -------------------------------------------------- */
body {
    background-color: #1a1a1a;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(161, 13, 13, 0.03) 40px,
        rgba(161, 13, 13, 0.03) 80px
    );
}

/* --- Header (NO overflow:hidden — it clips MetisMenu dropdowns) --- */
.header {
    background-color: #0d0d0d !important;
    background-image: none !important;
    border-bottom: none;                  /* only ONE red line — on the nav bar */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    padding: 0;
}

/* --- Logo centering (safe — does not touch grid layout) --- */
.header .navbar-brand {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

.header .brand-logo {
    display: block !important;
    text-align: center !important;
}

/* Logo image — centered + soft faded edges */
.header .brand-logo img,
.header a.brand-logo img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
    -webkit-mask-image:
        linear-gradient(to right,  transparent 0%, black 7%,  black 93%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right,  transparent 0%, black 7%,  black 93%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
    mask-composite: intersect;
}

/* --- Navigation bar --------------------------------------- */
.container-nav {
    background-color: #1c1c1c !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 4px solid #a10d0d;    /* the ONE red accent line */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.container-nav .navbar {
    padding-top: 0;
    padding-bottom: 0;
}

/* --- Top-level menu links --------------------------------- */
body .mod-menu.metismenu > li.metismenu-item > a,
body .mod-menu.metismenu > li.metismenu-item > button.mm-toggler-nolink {
    color: #e0e0e0 !important;
    background: transparent !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 15px 18px !important;
    display: inline-block !important;
    border-bottom: 3px solid transparent !important;
    transition: color 0.2s ease, border-color 0.2s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

body .mod-menu.metismenu > li.metismenu-item > a:hover,
body .mod-menu.metismenu > li.metismenu-item > button.mm-toggler-nolink:hover,
body .mod-menu.metismenu > li.metismenu-item.current > a,
body .mod-menu.metismenu > li.metismenu-item.active > a {
    color: #ff3030 !important;
    border-bottom-color: #a10d0d !important;
    background: rgba(161, 13, 13, 0.12) !important;
    text-decoration: none !important;
}

/* The small arrow/expand toggler next to linked items (e.g. "Event Services") */
body .mod-menu.metismenu .mm-toggler-link {
    background: transparent !important;
    border: none !important;
    color: #a10d0d !important;
    padding: 0 6px !important;
    font-size: 0.75rem !important;
    opacity: 0.8;
}

body .mod-menu.metismenu .mm-toggler-link:hover {
    opacity: 1;
    color: #ff3030 !important;
}

/* --- MetisMenu sub-menu panels (mm-collapse / mm-show) ---- */
/*
   MetisMenu adds .mm-show to .mm-collapse when expanded.
   These panels hang below the navbar — overflow:hidden on any
   ancestor element will clip them (that was the bug).
*/
body .mod-menu.metismenu .mm-collapse {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(161, 13, 13, 0.4) !important;
    border-top: 3px solid #a10d0d !important;
    border-radius: 0 0 6px 6px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85) !important;
    min-width: 240px !important;
    padding: 4px 0 8px !important;
    z-index: 9999 !important;
}

/* Sub-menu item links — level 2 */
body .mod-menu.metismenu .mm-collapse .metismenu-item > a {
    color: #e8e8e8 !important;
    background: transparent !important;
    display: block !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 9px 20px !important;
    border-left: 3px solid transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    opacity: 1 !important;
}

body .mod-menu.metismenu .mm-collapse .metismenu-item > a:hover {
    color: #ffffff !important;
    background: rgba(161, 13, 13, 0.28) !important;
    border-left-color: #ff3030 !important;
    text-decoration: none !important;
}

/* Sub-menu section divider labels (e.g. "Contact Us", "FAQ's") */
body .mod-menu.metismenu .mm-collapse .metismenu-item.divider > span,
body .mod-menu.metismenu .mm-collapse .metismenu-item.divider > span.separator {
    display: block !important;
    color: #a10d0d !important;
    font-size: 0.70rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    padding: 14px 20px 5px !important;
    border-bottom: 1px solid rgba(161, 13, 13, 0.22) !important;
    margin-bottom: 4px !important;
    opacity: 1 !important;
}

/* Level-3 sub-sub-menus (e.g. Bar-Bat Mitzvah sub-items) */
body .mod-menu.metismenu .mm-collapse .mm-collapse {
    background-color: #141414 !important;
    border-left: 3px solid rgba(161, 13, 13, 0.5) !important;
    border-top: 1px solid rgba(161, 13, 13, 0.3) !important;
    border-radius: 0 !important;
    margin-left: 12px !important;
    box-shadow: none !important;
}

/* --- Main content container ------------------------------- */
.container-component {
    background: #f4f0ec;    /* warm off-white — easier on the eyes than pure white */
    padding: 36px 40px;
    border-radius: 0;
    border-top: 4px solid #a10d0d;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
    margin-top: 24px;
    margin-bottom: 24px;
}

/* --- Page/article headings -------------------------------- */
.container-component h1,
.container-component h2,
.container-component h3 {
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.container-component h1::after,
.container-component h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #a10d0d;
    margin-top: 8px;
    margin-bottom: 16px;
}

/* --- Links inside content --------------------------------- */
.container-component a:not(.btn) {
    color: #a10d0d;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.container-component a:not(.btn):hover {
    color: #c01515;
    border-bottom-color: #a10d0d;
}

/* --- Article content images — override inline blue glow --- */
.com-content-article__body img,
.container-component img {
    border-radius: 8px !important;
    border: 2px solid #a10d0d !important;
    box-shadow:
        0 0 0 2px #0d0d0d,
        0 0 0 5px rgba(161, 13, 13, 0.4),
        0 10px 35px rgba(0, 0, 0, 0.55) !important;
    background-color: transparent !important; /* override the beige inline bg */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.com-content-article__body img:hover,
.container-component img:hover {
    transform: scale(1.015);
    box-shadow:
        0 0 0 2px #0d0d0d,
        0 0 0 7px rgba(161, 13, 13, 0.6),
        0 16px 45px rgba(0, 0, 0, 0.65) !important;
}

/* Exclude the logo from article image rules */
.header .brand-logo img {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
}

/* --- Video player table container ------------------------- */
/* The video is inside a <table> in the article body */
.com-content-article__body table {
    background: #0d0d0d !important;
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 2px solid #a10d0d !important;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.65) !important;
    width: 100% !important;
}

.com-content-article__body table td {
    background: #0d0d0d !important;
    padding: 12px !important;
}

/* --- Yendif video share playlist -------------------------- */
#yendif-video-share-playlist-1,
.yendif-video-share-playlist {
    border-radius: 10px !important;
    overflow: hidden !important;
}

.yendif-video-share-playlist-player {
    background: #000 !important;
}

.yendif-video-share-playlist-videos {
    background: #141414 !important;
    border-left: 2px solid rgba(161, 13, 13, 0.35) !important;
}

.yendif-video-share-playlist-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: background 0.15s ease;
}

.yendif-video-share-playlist-item.active,
.yendif-video-share-playlist-item:hover {
    background: rgba(161, 13, 13, 0.2) !important;
    border-left: 3px solid #a10d0d !important;
}

.yendif-video-share-title {
    color: #e0e0e0 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.yendif-video-share-meta,
.yendif-video-share-category,
.yendif-video-share-meta .text-muted,
.yendif-video-share-category .text-muted {
    color: #777 !important;
    font-size: 0.74rem !important;
}

/* --- Buttons ---------------------------------------------- */
.container-component .btn,
.container-component a.btn {
    background-color: #a10d0d;
    border-color: #a10d0d;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: none;
    padding: 10px 28px;
    border-radius: 3px;
    transition: background-color 0.2s, transform 0.1s;
}

.container-component .btn:hover {
    background-color: #c01515;
    border-color: #c01515;
    transform: translateY(-1px);
}

/* --- Module titles ---------------------------------------- */
.moduletable .module-title,
.moduletable h3 {
    background-color: #a10d0d;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 16px;
    margin: 0 0 12px 0;
    border-radius: 3px 3px 0 0;
}

/* --- Footer ----------------------------------------------- */
footer,
.footer,
.site-footer,
.container-footer {
    background-color: #0d0d0d !important;
    border-top: 3px solid #a10d0d;
    color: #777777 !important;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

footer a,
.footer a {
    color: #a10d0d !important;
}

/* --- Breadcrumb ------------------------------------------- */
.breadcrumb {
    background-color: transparent;
    padding: 8px 0;
}

.breadcrumb-item a {
    color: #a10d0d;
}

.breadcrumb-item.active {
    color: #666666;
}

/* --- Mobile responsive ------------------------------------ */
@media (max-width: 991px) {
    .container-nav .navbar-collapse {
        background-color: #1a1a1a;
        border-top: 2px solid #a10d0d;
        padding: 8px 0;
    }

    body .mod-menu.metismenu > li.metismenu-item > a,
    body .mod-menu.metismenu > li.metismenu-item > button.mm-toggler-nolink {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding: 12px 20px !important;
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }

    body .mod-menu.metismenu .mm-collapse {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 3px solid #a10d0d !important;
        border-radius: 0 !important;
        margin-left: 16px !important;
        padding: 0 !important;
    }

    .container-component {
        padding: 20px;
        margin-top: 12px;
    }
}
