﻿:root {
    --gold: #b89d18;
    --accent-gold: #d4af37;
    --gold-light: #ccb843;
    --gold-bg: rgba(184,157,24,0.08);
    --gold-border: rgba(184,157,24,0.2);
    --navy: #333f48;
    --navy-deep: #2b343b;
    --navy-mid: #3f4b5e;
    --navy-bg:rgba(51,63,72,0.06);
    --teal: #115e67;
    --teal-light: #1d848d;
    --teal-bg: rgba(17,94,103,0.06);
    --blue: #2e5f8a;
    --accent-blue: #4b87f2;
    --blue-bg: rgba(46,95,138,0.06);
    --green: #59621d;
    --green-light: #659136;
    --bright-green: #4a7c2f;
    --olive: #a09958;
    --olive-deep: #706E45;
    --green-bg: rgba(89,98,29,0.06);
    --orange: #914910;
    --orange-bg: rgba(145,73,16,0.06);
    --red: #862633;
    --accent-red: #f44336;
    --red-bg: rgba(134,38,51,0.06);
    --purple: #5c3d6e;
    --purple-bg: rgba(92,61,110,0.06);
    --white-bright: #ffffff;
    --gray-light: #F1EFE8;
    --gray-mid: #888780;
    --gray-dark: #444441;
    --bg: #f3f4f6;
    --bg-warm: #f8f7f5;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-cream: #fefaf6;
    --text: #1a1a1a;
    --text-mid: #4a5a6e;
    --text-light: #7b8a9c;
    --text-faint: #a3b0bf;
    --border: #e4e7ec;
    --border-light: #eef0f3;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow-xs: 0 1px 2px rgba(28,43,58,0.04);
    --shadow-sm: 0 2px 8px rgba(28,43,58,0.06);
    --shadow-md: 0 4px 20px rgba(28,43,58,0.08);
    --shadow-lg: 0 8px 40px rgba(28,43,58,0.10);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.15);
}

body {
    background: #fff
}

textarea{
    height:7rem;
    width:95%;
}

.nav-cvmic {
    /*background:#333f48;*/
    border-bottom:0px;
    /*color:#FFF;*/
    /*max-height:3.5rem !important;*/    
}

.horizontal-rule-container{
    line-height:0px;
    width:100%;
    position:sticky;
    top:6rem;
    z-index:19;
}

.image-list-view{
    height:30rem;
    width:auto;
}

.btn-primary {
    color: #fff;
    background-color: #333f48;
    border-color: #333f48;
    opacity: .9;
}

    .btn-primary:hover {
        color: #fff;
        background-color: #333f48;
        border-color: #333f48;
        opacity:1;
    }

    .btn-primary:focus, .btn-primary.focus {
        color: #fff;
        background-color: #59621d;
        border-color: #59621d;
        box-shadow: 0 0 0 0.2rem rgba(73, 82, 13, 0.5);
    }

.btn-primary.disabled, .btn-primary:disabled {
    color: #fff;
    background-color: #aaa;
    border-color: #aaa;
}

    .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
    .show > .btn-primary.dropdown-toggle {
        color: #fff;
        background-color: #59621d;
        border-color: #49520d;
    }

    .btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,
    .show > .btn-primary.dropdown-toggle:focus {
        box-shadow: 0 0 0 0.2rem rgba(73, 82, 13, 0.5);
    }



.btn-danger {
    color: #fff;
    background-color: #862633;
    border-color: #862633;
    opacity:.9;
}

    .btn-danger:hover {
        color: #fff;
        background-color: #862633;
        border-color: #862633;
        opacity:1;
    }

    .btn-danger:focus, .btn-danger.focus {
        color: #fff;
        background-color: #914910;
        border-color: #914910;
        box-shadow: 0 0 0 0.2rem rgba(161, 90, 32, 0.5);
    }

.btn-danger.disabled, .btn-danger:disabled {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

    .btn-danger:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled).active,
    .show > .btn-danger.dropdown-toggle {
        color: #fff;
        background-color: #914910;
        border-color: #914910;
    }

    .btn-danger:not(:disabled):not(.disabled):active:focus, .btn-danger:not(:disabled):not(.disabled).active:focus,
    .show > .btn-danger.dropdown-toggle:focus {
        box-shadow: 0 0 0 0.2rem rgba(161, 90, 32, 0.5);
    }



.text-danger {
    color: #ae4e4b !important;
}

a.text-danger:hover, a.text-danger:focus {
    color: #6e0e1b !important;
}



.CVMIC-container,
.CVMIC-container-fluid,
.CVMIC-container-sm,
.CVMIC-container-md,
.CVMIC-container-lg,
.CVMIC-container-xl {
    /*width: 80%;  ***Not sure why, but this was messing up the responsive adjustments*/
    /*padding-right: 4rem;
    padding-left: 4rem;
    padding-top: 4rem;*/
    padding:1rem;
    margin-right: 200px;
    margin-left: 220px;
}

@media(max-width: 812px){
    .CVMIC-container, .CVMIC-container-sm, .CVMIC-container-md {        
        margin-left: auto;
        margin-right:auto;
        padding:1rem;
    }

    .sidebar {
        display: none;
    }

    
}

@media(min-width: 20px){
    .page-banner-text h1 {
        font-size: 1.8rem;
    }
}



@media (min-width: 576px) {
    .CVMIC-container, .CVMIC-container-sm {
        /*max-width: 500px;*/
        padding:1rem;
    }

    .navbar-collapse ul{
        max-height:3rem
    }
   
    
}

@media (min-width: 768px) {
    .CVMIC-container, .CVMIC-container-sm, .CVMIC-container-md {
        /*max-width: 600px;*/
        padding:1rem;
    }
    .page-banner-text h1 {
        font-size: 2.4rem;
    }
}

@media (min-width: 992px) {
    .CVMIC-container, .CVMIC-container-sm, .CVMIC-container-md, .CVMIC-container-lg {
        /*max-width: 960px;*/
        padding-left:3rem;
    }
    .page-banner-text h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    .CVMIC-container, .CVMIC-container-sm, .CVMIC-container-md, .CVMIC-container-lg, .CVMIC-container-xl {
        /*max-width: 1140px;*/
        padding-left:3rem
    }
}



.sidebar {
    margin: 0;
    padding: 0;
    max-width: 180px;
    width:180px;
    background-color: #eee;
    /*float:left;*/
    height: auto;
    overflow: auto;
    position:absolute;
}


/*.sidebar a {
    display: -webkit-box;
    width:100%;
    color: #333f48;*/
    /*padding: 16px;*/
    /*padding:3px 3px 3px 3px !important;
    text-decoration: none; 
    border-radius:.5rem;
    border:solid .5px;
}


.sidebar a:hover {
    color: #fff;
    background-color: #333f48;
    opacity: .9;
}*/

.sidebar-button img{
    max-height:3rem;
    padding-right:.5rem; 
}

.anchor-alt {
    border-radius:4rem;
}


.masonry-tile {
    /*color: #000;
    background-color: #FFF;*/
    display: inline-block;
    padding: 5px;
    width: 100%;
    margin: 1em 0; /* for separating masonry-bricks vertically*/
}


.masonry-container {
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
    }


.sidebar-button {
    opacity: 1;
    margin: 2px;
    height: 3rem;
    width: 200px;
    display: flex;
    justify-content: left;
    align-items: center;
    color: #eee;
    line-height:1.2;
}

.sidebar-button:hover {
    opacity:.8;
    color:#eee;
}

.cvmic-team-item {
    margin-left:8px;
    margin-right:8px;
}


/*@media screen and (max-width: 700px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

        .sidebar a {
            float: left;
        }

    div.content {
        margin-left: 0;
    }
}*/

.icon-image {
    width: 100%;
    max-width: 7.5rem;
    height: auto;
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.icon-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    height: 100%;
}

    .icon-link:hover .icon-image {
        text-decoration: none;
        color: inherit;
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

.icon-container {
    //background: #f8f9fa;
    //border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    height: 100%;
    //border: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.icon-link:hover .icon-container {
    background: #e9ecef;
}

.icon-large {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.icon-title {
    font -size: 1.1rem;
    font-wei ght: 600;
    margin-botto m: 0.5rem;
    color: # 333;
}


.icon-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Custom spacing */
.icon-row {
    margin-bottom: 2rem;
}


@media (max-width: 767.98px) {
    .icon-container {
        padding: 1.5rem 1rem;
    }

    .icon-large {
        font-size: 2.5rem;
    }
}


/*Page Elements*/

/*.page-banner-container {
    position: relative;*/ /* Establishes a positioning context for the absolute text */
    /*width: 100%;*/ /* Adjust width as needed */
    /*max-width: 100%;*/ /* Optional: control max size */
/*}*/

.page-banner-container{
    position:sticky;
    top:6.3rem;
    z-index:19;
}

.page-banner-container img {
    max-width:3rem;
    margin:0rem .5rem;
}

.page-banner{
    display:flex;
    padding:.2rem;
    background-color:var(--theme-color)
}

.page-banner h2{
    color:white;
    margin:0rem .5rem;
    font-size:2rem;
}

/*.page-banner-container img {
    width: 100%;*/ /* Ensures the image fills the container width */
    /*height: 7rem;*/ /* Maintains aspect ratio */
    /*display: block
}*/


.page-banner-text {
    position: absolute; /* Positions the text relative to the container */
    top: 50%; /* Starts the text at the vertical center of the container */
    left: 50%; /* Starts the text at the horizontal center of the container */
    transform: translate(-50%, -50%); /* Centers the text block itself */
    color: white; /* Choose a contrasting color */
    /*font-size: 24px;*/
    font-weight: bold;
    text-align: center;
    z-index: 1; /* Ensures text is above the image*/
}




/* Page layout: 3-column responsive grid for MAIN MENU */

.main-menu-page-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    align-items: stretch;
    gap: 2rem;
}

/* Group styling */
.main-menu-app-group {
    display: flex;
    flex-direction: column;
    min-width: 10rem;
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: 8px;
    border: .2rem solid black;
    margin: 4rem 1rem;
}

.main-menu-app-group-header {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.main-menu-app-columns {
    flex: 1;
    padding: 2rem;
    column-width: 10rem;
    column-gap: 4rem;
    height: 100%;
    overflow: visible;
}

.main-menu-app-item {
    break-inside: avoid;
    padding: 1rem;
    word-wrap: break-word;
}



/* Icon grid inside each group */
.main-menu-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

/* Individual icon link */
.main-menu-icon-link-sm {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 0.5rem;
    transition: background 0.2s ease;
}

    .main-menu-icon-link-sm:hover {
        /* background: #e0e0e0; */
    }

    .main-menu-icon-link-sm img {
        width: 48px;
        height: 48px;
        margin-right: 0.5rem;
    }


/* Page layout: 3-column responsive grid -- Base */

.menu-page-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin:0;
    align-items:stretch;
    gap: 2rem;
}

/* Group styling */
.app-group {
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    min-width:10rem;
    max-width:25rem;
    overflow:hidden;   

    margin: 4rem 1rem 0rem 1rem;
}

.app-group-header {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap:2rem;
}

.app-columns {
    flex: 1;
    padding: 2rem;
    column-width: 10rem;
    column-gap: 4rem;
    height:100%;
    overflow:visible;
}

.app-item {
    break-inside:avoid;
    padding: 1rem;
    word-wrap: break-word;
}

.app-group-image {
    width: 100%;
    max-width: 24rem;
    height: auto;
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}
    
    
/* Icon grid inside each group */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

/* Individual icon link */
.icon-link-sm {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 0.5rem;
    transition: background 0.2s ease;
}

    .icon-link-sm:hover {
        /* background: #e0e0e0; */
    }

    .icon-link-sm img {
        width: 24px;
        height: 24px;
        margin-right: 0.5rem;
    }






.video-player-space {
    padding: 1rem;
    border-bottom: 2px solid #0078d4;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

    .video-player-space h2 {
        color: #323130;
        font-size: 24px;
        font-weight: 600;
    }



/* Scrollbar styling */
.resource-section::-webkit-scrollbar {
    width: 8px;
}

.resource-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.resource-section::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    .resource-section::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }



.video-player {
    flex: 0 0 calc(25% - 1rem);
    position: sticky;
    top: 2rem;
    height: fit-content;
}

#video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.video-list {
    padding: 10px;
    max-width: 28rem;
}

.video-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    border: 1px solid transparent;
}


.video-list h4 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.video-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}





.video-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateX(4px);
}

.video-item.active {
    background: #e7f3ff;
    border-color: #007bff;
}

.video-thumbnail {
    width: 7rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    margin: 0rem 1rem 0rem 0rem;
}

.video-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .video-details h5 {
        margin: 0 0 0.25rem 0;
        font-size: 1rem;
        color: #333;
        line-height: 1.3;
    }



/* Resource Section Styles */
.resource-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
}

.resource-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-gold);
}

.resource-section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--blue), var(--accent-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: var(--shadow-md);
}

    .resource-section-icon img {
        width: 3rem;
        border-radius: .5rem;
    }

    .resource-section-icon svg {
        width: 28px;
        height: 28px;
        fill: white;
        background: linear-gradient(135deg, var(--blue), var(--accent-blue));
    }

.resource-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.resource-section-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    display: flex;
    /*align-items: center;*/
    gap: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    max-height: 36rem;
    overflow: auto;
}

    .resource-section-card:hover {
        transform: translateX(4px);
        box-shadow: var(--shadow-lg);
    }

.resource-section-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

    .resource-section-card-icon svg {
        width: 48px;
        height: 48px;
        fill: var(--accent-gold);
    }

.resource-section-content {
    flex: 1;
}

    .resource-section-content h3 {
        font-family: 'Oswald', sans-serif;
        font-size: 1.5rem;
        color: var(--navy);
        margin-bottom: 0.5rem;
    }

.resource-list {
    list-style: none;
    margin-top: 1rem;
}

.resource-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

    .resource-item:hover {
        background: var(--border-light);
    }

.resource-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resource-item-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}





.doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
}

    .doc-icon.doc,
    .doc-icon.docx {
        background: linear-gradient(135deg, var(--navy-mid), var(--accent-blue));
    }

    .doc-icon.pdf {
        background: linear-gradient(135deg, var(--red), var(--accent-red));
    }

    .doc-icon.xls,
    .doc-icon.xlsx {
        background-color: #217346;
    }

    .doc-icon.ppt,
    .doc-icon.pptx {
        background-color: #d24726;
    }

    .doc-icon.txt {
        background-color: #5c5c5c;
    }

    .doc-icon.img {
        background-color: rebeccapurple;
    }

    .doc-icon.default {
        background-color: #8e8e93;
    }




.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Barlow', sans-serif;
}

.btn-primary {
    background: var(--blue);
    color: white;
    flex: 1;
}

    .btn-primary:hover {
        background: var(--navy);
        transform: translateY(-1px);
    }

/*.btn-secondary {
    background: var(--bg-light);
    color: var(--text-mid);
    border: 1px solid var(--border-light);
}

    .btn-secondary:hover {
        background: white;
        border-color: var(--blue);
        color: var(--blue);
    }*/

.btn-secondary {
    background: var(--teal);
    color: var(--text-mid);
    border: 1px solid var(--border-light);
}

    .btn-secondary:hover {
        background: var(--teal-light);
        border-color: var(--blue);
        color: var(--blue);
    }

/* Video Section */
.video-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-height: 22rem;
    overflow-y: auto;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

    .video-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }





.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 1.25rem;
}

    .video-info h3 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 0.5rem;
    }

.video-duration {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Links Section */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .link-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--accent-gold);
    }

    .link-card:nth-child(3){
        grid-column:auto;
        margin-right:0;
    }

    .link-card:nth-child(4){
        grid-column-start:1;
    }

.link-logo {
    /*width: 120px;*/
    height: 120px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.link-card:hover .link-logo {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.link-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius:.5rem
}

.link-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.link-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
}

/* Navigation Tabs */

.resource-nav-container {
    background: white;
    margin: 0 0 5rem 0;
    display: flex;
    overflow-x: auto;
    justify-content: space-around;
    position: sticky;
    top: 9.7rem;
    z-index: 18;
}

.resource-nav-tab {
    padding: .2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--theme-color);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .resource-nav-tab:hover {
        color: var(--blue);
        background: var(--bg-light);
    }

    .resource-nav-tab.active {
        color: var(--blue);
        border-bottom-color: var(--accent-gold);
    }




