/* Main layout with sidebar */
html {
    overflow-y: auto;
}

/* Main layout with sidebar */
.main-layout-container {
    margin-left: 125px;
    margin-right: 20px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.main-content-area {
    flex: 1;
}

.sidebar-area {
    width: 250px;
    padding-top: 20px;
    border-left: solid;
    border-left-width: thin;
    border-left-color: #ddd;
    padding-left: 23px;
}

/* Quick access sidebar menu */
.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    position: relative;
}

.sidebar-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #0066cc;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    background-color: #1a1a32;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: smaller;
}

.sidebar-item:hover {
    transform: translateX(5px);
    background-color: #2a2a42;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #2dda94;
    text-decoration: none;
}

.sidebar-item i {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

/* News section styling */
.intranet-container {
    padding: 20px 0;
    max-width: 80%;
}

.sections-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.section-container {
    width: 50%;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: #0066cc;
}

.view-all {
    display: inline-flex;
    align-items: center;
    color: #0066cc;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.view-all i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.view-all:hover {
    color: #004d99;
    text-decoration: none;
}

.view-all:hover i {
    transform: translateX(3px);
}

/* Vertical layouts */
.entries-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

/* List entry styles */
.list-entry {
    display: flex;
    padding: 5px 0;
    border-bottom: 1px solid #eaeaea;
}

.list-entry:last-child {
    border-bottom: none;
}

.list-entry:hover {
    background-color: #f9f9f9;
}

/* Person and entry styles */
.person-card {
    display: flex;
    align-items: flex-start;
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.person-image-container {
    width: 70px;
    height: 70px;
    border-radius: 0;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    background-color: #f0f0f0;
    position: relative;
}

.person-image-visible {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
}

.person-image-source {
    display: none;
}

.person-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* List entry content */
.entry-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000;
}

.entry-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.read-more {
    font-size: 14px;
    color: #000;
    text-decoration: underline;
    font-weight: 500;
    margin-top: auto;
}

/* Placeholder styles */
.placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    width: 100%;
    height: 100%;
    font-size: 24px;
}

/* Management toolbar and buttons */
.management-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-bottom: 10px;
}

.compact-button {
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.compact-button:hover {
    background-color: #0055aa;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Page header with image and title */
.page-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -15px;
    height: 20vh;
    position: relative;
}

.page-header-image {
    height: 20vh; 
    width: 100%; 
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.page-header-title {
    position: relative;
    top: 5vh;
    color: white;
    z-index: 2;
    margin-bottom: 10px;
}

.page-header-title h1 {
    font-size: 3.5vw;
}

/* Notification and modal styles */
#notification-popup {
    display: none;
    position: fixed;
    top: -1px;
    left: 266px;
    background-color: #1a1a32;
    padding: 5px;
    box-shadow: 0 10px 5px rgba(0, 0, 0, 0.45);
    width: 295px;
    z-index: 99999;
    border-radius: 8px;
}

#privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100000;
}

#privacy-modal > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a1a32;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 5px rgba(0, 0, 0, 0.45);
}

#privacy-modal h3 {
    color: #fff;
    margin-top: 0;
}

#privacy-modal div:nth-child(2) {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    color: #fff;
}

#home-client-modal {
    display: none;
    position: fixed;
    top: -1px;
    left: 266px;
    background-color: #1a1a32;
    padding: 5px;
    box-shadow: 0 10px 5px rgba(0, 0, 0, 0.45);
    width: 295px;
    z-index: 99999;
    border-radius: 8px;
}

#change-office-modal {
    display: none;
    position: fixed;
    top: -1px;
    left: 266px;
    background-color: #1a1a32;
    padding: 15px;
    box-shadow: 0 10px 5px rgba(0,0,0,0.45);
    width: 295px;
    z-index: 100000;
    border-radius: 8px;
}

.buttondiv {
    display: flex;
    justify-content: space-around;
}

.message {
    text-align: center;
    color: #fff;
    display: flex;
}

.icon {
    text-align: center;
    margin-right: 5px;
}

.NoThanks {
    cursor: pointer;
    margin-bottom: 0px;
    font-size: 15px;
    letter-spacing: 2px;
    margin-top: 7px;
    color: #fff;
}

.NoThanks:hover {
    color: #2dda94;
}

.message p {
    font-size: 15px;
}

.subscribeButton {
    background-color: #2dda94;
    border: 1px solid rgba(27, 31, 35, .15);
    box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    padding: 6px 16px;
    position: relative;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
    white-space: nowrap;
    margin-bottom: 3px;
}

.subscribeButton:focus:not(:focus-visible):not(.focus-visible) {
    box-shadow: none;
    outline: none;
}

.subscribeButton:hover {
    background-color: #2dda94;
}

.subscribeButton:focus {
    box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
    outline: none;
}

.subscribeButton:disabled {
    background-color: #2dda94;
    border-color: rgba(27, 31, 35, .1);
    color: rgba(255, 255, 255, .8);
    cursor: default;
}

.subscribeButton:active {
    background-color: #2dda94;
    box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .main-layout-container {
        flex-direction: column;
    }
    
    .main-content-area {
        width: 100%;
    }
    
    .sidebar-area {
        width: 100%;
        padding-top: 20px;
        margin-top: 20px;
        border-top: 1px solid #eaeaea;
    }
    
    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sidebar-item {
        width: calc(33.33% - 7px);
        padding: 8px;
        justify-content: center;
    }
    
    .section-container {
        width: 100%;
    }
    
    .page-header-title h1 {
        font-size: 5vw;
    }
}

@media screen and (max-width: 768px) {
    .sidebar-item {
        width: calc(50% - 5px);
    }
}

@media screen and (max-width: 576px) {
    .sidebar-item {
        width: 100%;
    }
    
    .sidebar-item i {
        font-size: 16px;
        margin-right: 10px;
    }
    
    .page-header-title h1 {
        font-size: 7vw;
    }
}

/* Animations */
@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
