/* ==========================================================================
   1. GLOBAL & WATERMARK BACKGROUND STYLES
   ========================================================================== */
body {
    background-image: url('http://icac.anchoredweb.info/images/logo-ccicac-transparent-1pct.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: contain; /* Keeps the big logo fully contained on screen without cutting off */
}

li.metismenu-item.level-1 {
    text-transform: uppercase;
    font-weight: 900;
    font-size: 20px!important;
}
/* ==========================================================================
   2. MISSION & REPORTING PANEL COMPONENT (HOME / INSIDE PAGES)
   ========================================================================== */
.icac-mission-box {
    background: radial-gradient(circle, rgba(13,31,53,0.85) 0%, rgba(5,13,24,0.95) 100%);
    border: 1px solid #4a5d73;
    outline: 1px solid #1a2a3a;
    outline-offset: -5px; /* Sleek inner double-border effect */
    padding: 40px;
    border-radius: 4px;
    color: #ffffff;
    font-family: serif;
    text-align: center;
    max-width: 1000px;
    margin: 30px auto;
}

.icac-mission-header h2, 
.icac-reporting h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.mission-text {
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 85%;
    margin: 0 auto;
    color: #e0e6ed;
}

.icac-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #bda252, transparent); /* Gold gradient line */
    margin: 35px auto;
    width: 85%;
    opacity: 0.7;
}

/* 3-Column Navigation Grid & Native Font Awesome Badges */
.icac-grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.icac-icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background-color: #007a3d; /* Tactical green accent background */
    border-radius: 50%;        /* Clean round icon badge */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease;
}

.icac-icon-wrap i {
    color: #ffffff;
    font-size: 2rem; /* Clean vector size scaling */
}

.icac-grid-item {
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.icac-grid-item:hover {
    transform: translateY(-3px);
    color: #bda252;
}

.icac-grid-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    height: 50px; /* Keeps icons perfectly aligned even with wrapping text */
    display: flex;
    align-items: center;
    justify-content: center;
}

.icac-grid-item:hover .icac-icon-wrap {
    background-color: #00994d; /* Brightens up the green container on item hover */
}

/* Bottom Reporting Section Call-to-actions */
.reporting-subtext {
    font-style: italic;
    color: #c9d4df;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.icac-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-cybertipline {
    background: #3562ff;
    color: white;
    text-decoration: none;
    padding: 12px 60px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
}

.btn-cybertipline:hover {
    background: #1e4ee6;
    color: white;
}

.icac-phone-numbers {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-family: serif;
    color: #007a3d; /* Tactical green text color matches phone output */
    font-size: 1.35rem;
    font-weight: bold;
    line-height: 1.3;
}

/* ==========================================================================
   3. SITE HEADER NAV & BRAND LOGO ALIGNMENTS (Mobile Split-Row Layout)
   ========================================================================== */

/* DESKTOP BRAND STYLING (Large viewports keep original design aligned to inner grid) */
@media (min-width: 992px) {
    .container-header .navbar-brand {
        position: absolute;
        top: 0;
        /* Dynamically snaps the logo to the inner edge of the 1320px content grid container */
        left: calc(50% - 660px + 15px); 
        z-index: 1000;
    }

    /* Fallback safety: if the browser screen is smaller than 1320px, keep the default left edge margin padding */
    @media (max-width: 1350px) {
        .container-header .navbar-brand {
            left: 15px;
        }
    }
    
    .container-search {
        display: flex;
        align-items: center;
        justify-content: space-between; 
        width: 80%;
        gap: 20px;
    }
}

/* MOBILE BRAND STYLING: Enforces Logo/Hamburger Row 1, Centered CTA Row 2 */
@media (max-width: 991.98px) {
    /* 1. Turns the main header container into a multi-row flex wrapper */
    header.container-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important; /* Vital to let elements wrap into row 2 */
        align-items: center !important;
        justify-content: space-between !important;
        padding: 15px !important;
    }

    /* 2. Locks Logo Row 1 (Left Aligned) */
    header.container-header > .grid-child:first-of-type {
        flex: 0 0 auto !important;
        width: auto !important;
        order: 1 !important;
    }

    .container-header .navbar-brand {
        position: relative !important;
        display: block;
        margin: 0;
    }

    .brand-logo img {
        width: 95px !important;
        height: 95px !important;
    }

    /* 3. Locks Navigation Row 1 (Right Aligned Hamburger) */
    header.container-header > .container-nav {
        flex: 0 0 auto !important;
        width: auto !important;
        order: 2 !important;
    }

    .container-search {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        width: auto !important;
    }

    .container-search nav.navbar {
        display: flex !important;
        justify-content: flex-end !important;
    }

    /* 4. Drops CyberTipline to Row 2 (Centered Across 100% Width) */
    .container-search #mod-custom113 {
        position: absolute !important; /* Break free to occupy row 2 centering */
        left: 0 !important;
        right: 0 !important;
        top: 125px; /* Safely clears the 95px logo height */
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 15px;
    }

    /* Add protective base padding to the header block so content doesn't tuck under Row 2 */
    header.container-header {
        padding-bottom: 65px !important; 
    }

    /* Mobile CTA Button shape targeting framework */
    .btn-header-cta {
        width: 100%;
        max-width: 280px; 
        text-align: center;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Base Global Header CyberTipline Button Styling */
.btn-header-cta {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15); 
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35); 
    border-radius: 4px;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-header-cta:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff !important;
}

/* ==========================================================================
   4. BREADCRUMBS DESIGN HOOKS
   ========================================================================== */
@media (min-width: 992px) {
    .mod-breadcrumbs__wrapper {
        padding-left: 255px; /* Shifts the entire breadcrumb bar to the right to clear logo */
        box-sizing: border-box;
    }
}

@media (max-width: 991.98px) {
    .mod-breadcrumbs {
        display: flex;
        flex-wrap: wrap;
        padding-left: 15px;
    }
}

/* ==========================================================================
   5. NATIVE JOOMLA NEWS BLOG ENHANCEMENTS (Category View - No Overlap)
   ========================================================================== */

/* Main Blog Item Card Wrapper Layout */
body.wide-sidebar .com-content-category-blog__item.blog-item {
    background-color: transparent;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative; 
}

/* Two-Column Layout split (Desktop viewports) */
@media (min-width: 768px) {
    body.wide-sidebar .com-content-category-blog__item.blog-item {
        display: grid;
        grid-template-columns: 280px 1fr; 
        align-items: stretch; /* Keeps columns equal height */
    }
}

/* LEFT SIDE: Image Block Wrapper */
body.wide-sidebar .blog-item .item-image {
    margin: 0 !important;
    float: none !important;
    position: relative;
    background: #11161b; /* Seamless background blend */
    display: block; 
    overflow: hidden;
    border-bottom: 4px solid #2b62ff; 
    width: 280px;
    height: 250px; 
    z-index: 1;
}

body.wide-sidebar .blog-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: top center; 
    display: block;
}

/* RIGHT SIDE: Title & Content Box Panel */
body.wide-sidebar .blog-item .item-content {
    background-color: #11161b; 
    padding: 25px 30px 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px; 
    box-sizing: border-box;
    position: relative;
}

body.wide-sidebar .blog-item .page-header {
    border: none;
    margin: 0 0 15px 0;
    padding: 0;
}

body.wide-sidebar .blog-item .page-header h2 {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1.45rem;
    line-height: 1.4;
}

body.wide-sidebar .blog-item .page-header h2 a {
    color: #3b76ff !important; 
    text-decoration: none !important;
    font-weight: 700;
}

body.wide-sidebar .blog-item .page-header h2 a:hover {
    color: #6192ff !important;
}

/* CATEGORY VIEW BADGES (Moved off the face and onto the text block container) */
body.wide-sidebar .blog-item .article-info {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row; /* Side-by-side badges alignment */
    flex-wrap: wrap;
    gap: 10px;
}

body.wide-sidebar .blog-item .article-info-term {
    display: none !important; 
}

/* Badge Capsules Styling Profiles */
body.wide-sidebar .blog-item .article-info dd {
    margin: 0;
    background-color: #2b62ff; 
    color: #ffffff !important;
    font-family: sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    width: fit-content;
    white-space: nowrap;
    font-size: 0; /* Strips "Category:" label prefix output */
}

body.wide-sidebar .blog-item .article-info dd span,
body.wide-sidebar .blog-item .article-info dd time {
    font-size: 0.8rem; 
}

/* LOWER SECTION: Article Descriptive Body Text */
body.wide-sidebar .blog-item p {
    grid-column: span 2; 
    margin-top: 25px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e2e8f0;
}

/* Mobile Fallback Rules */
@media (max-width: 767.98px) {
    body.wide-sidebar .com-content-category-blog__item.blog-item {
        border: 1px solid rgba(255, 255, 255, 0.08);
        background-color: #11161b;
    }
    body.wide-sidebar .blog-item .item-image {
        width: 100%;
        height: auto;
    }
    body.wide-sidebar .blog-item .article-info {
        padding: 0 20px 15px 20px;
    }
    body.wide-sidebar .blog-item p {
        padding: 0 20px 20px 20px;
        margin-top: 10px;
    }
}
/* ==========================================================================
   6. NATIVE JOOMLA FULL SINGLE ARTICLE VIEWS (.item-pagewide-sidebar)
   ========================================================================== */

/* Main Container Header Alignment Split */
body.wide-sidebar .com-content-article.item-pagewide-sidebar {
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    body.wide-sidebar .com-content-article.item-pagewide-sidebar {
        display: grid;
        grid-template-columns: 280px 1fr;
        align-items: start;
    }
    
    /* Forces the single H1 header box to behave like the card title block layout on desktop */
    body.wide-sidebar .com-content-article.item-pagewide-sidebar .page-header {
        grid-column: 2;
        grid-row: 1;
        background-color: #11161b;
        padding: 35px 30px 15px 30px; /* Reduced bottom padding to group with badges */
        min-height: 200px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        margin: 0;
    }
}

body.wide-sidebar .com-content-article.item-pagewide-sidebar .page-header h1 {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
    line-height: 1.4;
    color: #3b76ff; 
    font-weight: 700;
}

/* Single View Image Frame Layout constraints */
body.wide-sidebar .com-content-article.item-pagewide-sidebar .item-image {
    margin: 0 !important;
    float: none !important;
    position: relative;
    background: #11161b;
    display: block;
    overflow: hidden;
    border-bottom: 4px solid #2b62ff;
    width: 280px;
    height: 250px;
    z-index: 1;
}

@media (min-width: 768px) {
    body.wide-sidebar .com-content-article.item-pagewide-sidebar .item-image {
        grid-column: 1;
        grid-row: 1;
    }
}

body.wide-sidebar .com-content-article.item-pagewide-sidebar .item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
}

/* Single View Badges (Moved underneath the title text on desktop) */
body.wide-sidebar .com-content-article.item-pagewide-sidebar .article-info {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row; /* Arranges badges side-by-side */
    flex-wrap: wrap;
    gap: 10px;
    background-color: #11161b;
}

body.wide-sidebar .com-content-article.item-pagewide-sidebar .article-info-term {
    display: none !important;
}

@media (min-width: 768px) {
    body.wide-sidebar .com-content-article.item-pagewide-sidebar .article-info {
        grid-column: 2;
        grid-row: 1;
        align-self: end; /* Snaps badges directly below header inside dark card block */
        padding: 0 30px 30px 30px;
        z-index: 5;
    }
}

/* Badge Capsules Styling Profiles */
body.wide-sidebar .com-content-article.item-pagewide-sidebar .article-info dd {
    margin: 0;
    background-color: #2b62ff;
    color: #ffffff !important;
    font-family: sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    width: fit-content;
    white-space: nowrap;
    font-size: 0; /* Strips "Category:" label text prefix strings */
}

body.wide-sidebar .com-content-article.item-pagewide-sidebar .article-info dd span,
body.wide-sidebar .com-content-article.item-pagewide-sidebar .article-info dd time {
    font-size: 0.8rem;
}

/* Full Article Description Text Paragraph Area */
body.wide-sidebar .com-content-article__body {
    grid-column: span 2;
    margin-top: 30px;
    box-sizing: border-box;
}

body.wide-sidebar .com-content-article__body p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 20px;
}

body.wide-sidebar .com-content-article__body a {
    color: #3b76ff;
    text-decoration: underline;
}

/* Single Page Mobile View Breakpoint Execution */
@media (max-width: 767.98px) {
    body.wide-sidebar .com-content-article.item-pagewide-sidebar .page-header {
        background-color: #11161b;
        padding: 20px 20px 10px 20px;
        margin-bottom: 0;
    }
    body.wide-sidebar .com-content-article.item-pagewide-sidebar .item-image {
        width: 100%;
        height: auto;
    }
    body.wide-sidebar .com-content-article.item-pagewide-sidebar .article-info {
        padding: 10px 20px 20px 20px;
    }
}

/* ==========================================================================
   7. HOMEPAGE RECENT CASES & NEWS CAROUSEL TRACK
   ========================================================================== */

/* Main Module Container Aesthetics */
.main-bottom.card {
    background-color: transparent !important;
    border: none !important;
    margin: 40px auto;
}

.main-bottom .card-header {
    background: transparent !important;
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* Transforms the list into a horizontal sliding window layout */
.main-bottom .mod-articles-items {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    padding: 0 0 15px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    overflow-x: auto; /* Enables native swipe and horizontal sliding tracking */
    scroll-snap-type: x mandatory; /* Snaps cards perfectly into place when moving */
    scrollbar-width: thin; /* Clean, minimal scrollbar for desktop tracking */
    scrollbar-color: #2b62ff transparent;
}

/* Custom Webkit scrollbar optimizations for web browsers */
.main-bottom .mod-articles-items::-webkit-scrollbar {
    height: 6px;
}
.main-bottom .mod-articles-items::-webkit-scrollbar-thumb {
    background: #2b62ff;
    border-radius: 10px;
}

/* Individual Card Sizing Constraints */
.main-bottom .mod-articles-items > li {
    flex: 0 0 100%; /* Default mobile behavior: 1 card full-width */
    scroll-snap-align: start;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .main-bottom .mod-articles-items > li {
        flex: 0 0 calc(50% - 10px); /* Tablet viewports: 2 cards showing */
    }
}

@media (min-width: 992px) {
    .main-bottom .mod-articles-items > li {
        flex: 0 0 calc(33.333% - 14px); /* Desktop viewports: Exactly 3 cards showing */
    }
}

/* Card Internal Styling Architecture */
.main-bottom .mod-articles-item {
    background-color: #11161b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.main-bottom .mod-articles-item:hover {
    transform: translateY(-4px);
    border-color: rgba(43, 98, 255, 0.4);
}

.main-bottom .mod-articles-item-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Image Presentation Header Box (Stacked cleanly on top) */
.main-bottom .mod-articles-item .item-image {
    width: 100%;
    height: 200px; /* Constrains landscape mugshot display box height perfectly */
    background-color: #000000;
    margin: 0 !important;
    float: none !important;
    order: 1; /* Rearranges element layout execution flow natively */
    border-bottom: 4px solid #2b62ff;
}

.main-bottom .mod-articles-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
}

/* Headline Styling Profile */
.main-bottom .mod-articles-title {
    order: 2;
    padding: 20px 20px 5px 20px;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.main-bottom .mod-articles-title a {
    color: #3b76ff !important;
    text-decoration: none !important;
    font-weight: 700;
}
.main-bottom .mod-articles-title a:hover {
    color: #6192ff !important;
}

/* Meta Labels Data Strip Layout */
.main-bottom .list-unstyled {
    order: 3;
    display: flex;
    gap: 15px;
    padding: 0 20px;
    margin: 10px 0;
    color: #a0aec0;
    font-size: 0.85rem;
}

.main-bottom .list-unstyled dd {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-bottom .list-unstyled .icon-folder-open,
.main-bottom .list-unstyled .icon-calendar {
    color: #2b62ff;
}

/* Summary Descriptive Excerpt Text */
.main-bottom .mod-articles-item-content p {
    order: 4;
    padding: 0 20px 20px 20px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
    flex-grow: 1; /* Pushes outer padding bounds safely */
}

/* ==========================================================================
   8. MOBILE NAVIGATION INTERACTION TUNING
   ========================================================================== */

@media (max-width: 991.98px) {
    /* Safe layout transition smoothing profile */
    .container-search #mod-custom113 {
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    /* Target: When the navigation container possesses the active `.show` expansion class */
    .container-search:has(#navbar1.show) #mod-custom113 {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important; /* Disables accidental touch interactions while hidden */
    }
}