/* Modern Intranet Styling Sheet for HAGP */
@import url('fonts/outfit_inter.css');

body {
    background-color: #f8f9ff !important;
    font-family: 'Inter', sans-serif !important;
    color: #0b1c30 !important;
}

h1, h2, h3, h4, h5, h6, .tittle, .card-title {
    font-family: 'Outfit', sans-serif !important;
}

/* Navbar styles */
.navbar-dark.bg-primary {
    background-color: #091426 !important;
    box-shadow: 0 4px 20px rgba(9, 20, 38, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-dark .navbar-nav .nav-link {
    color: #cbd5e1 !important;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.navbar-dark .navbar-nav .nav-link img {
    filter: brightness(1.1);
}

/* Iniciar Sesion / Profile Nav button */
.navbar-nav.ml-auto .nav-item .nav-link {
    background-color: #1e293b !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 8px 16px !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.navbar-nav.ml-auto .nav-item .nav-link:hover {
    background-color: #115cb9 !important;
    transform: translateY(-1px);
}

/* Sidebar Menu */
.list-group {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(9, 20, 38, 0.03);
    padding: 8px 0;
    border: 1px solid #e5eeff;
    overflow: hidden;
}

.list-group .list-group-item {
    background: transparent !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #45474c !important;
    padding: 12px 20px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease !important;
    border-left: 4px solid transparent !important;
    cursor: pointer;
}

.list-group .list-group-item i {
    width: 20px;
    font-size: 16px;
    color: #64748b;
    transition: color 0.2s ease;
}

.list-group .list-group-item:hover {
    background-color: #eff4ff !important;
    color: #0b1c30 !important;
    border-left-color: #115cb9 !important;
    padding-left: 24px !important;
}

.list-group .list-group-item:hover i {
    color: #115cb9;
}

.list-group .list-group-item.active {
    background-color: #eff4ff !important;
    color: #115cb9 !important;
    font-weight: 600 !important;
    border-left-color: #115cb9 !important;
}

.list-group .list-group-item.active i {
    color: #115cb9;
}

/* Main Container spacing */
#container {
    margin-top: 15px !important;
    max-width: 1350px !important;
}

/* Cartelera content styles */
.cartelera-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-top: 22px;
}

.cartelera-title-block {
    display: flex;
    flex-direction: column;
}

.cartelera-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #0b1c30;
    margin: 0 0 4px 0;
}

.cartelera-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.cartelera-date-block {
    text-align: right;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.cartelera-date-time {
    color: #115cb9;
    font-weight: 700;
}

/* News Cards */
.card.mt-4 {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #e5eeff !important;
    box-shadow: 0 8px 30px rgba(9, 20, 38, 0.03) !important;
    overflow: hidden;
    margin-top: 20px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.mt-4:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(9, 20, 38, 0.05) !important;
}

.card.mt-4 .card-body {
    padding: 24px !important;
    position: relative;
}

/* Featured News Card Enhancements */
.featured-news-card {
    border: 2px solid #115cb9 !important;
    background: linear-gradient(145deg, #ffffff, #f4f8ff) !important;
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(17, 92, 185, 0.1) !important;
    z-index: 2;
    position: relative;
    margin-bottom: 30px !important;
}

.featured-news-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(17, 92, 185, 0.15) !important;
}

.featured-news-card .card-title {
    font-size: 24px !important;
    color: #0b1c30 !important;
}


/* News publisher initials */
.publisher-initials {
    background-color: #091426;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    margin-right: 15px;
    float: left;
    box-shadow: 0 2px 8px rgba(9, 20, 38, 0.1);
}

.card-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0b1c30 !important;
    line-height: 1.4;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.card-title:hover {
    color: #115cb9 !important;
}

.card-text {
    color: #45474c !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.a-leer-mas {
    color: #115cb9 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    transition: gap 0.2s ease;
}

.a-leer-mas:hover {
    color: #003370 !important;
    gap: 8px;
}

.format-date {
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.card-img-top.img-fluid {
    border-radius: 12px;
    padding: 0 24px 24px 24px !important;
    object-fit: cover;
}

/* ==========================================================================
   MODERN CUMPLEAÑOS WIDGET (RIGHT SIDEBAR)
   ========================================================================== */

.cumple-card-modern {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5eeff;
    box-shadow: 0 8px 30px rgba(9, 20, 38, 0.03);
    margin-top: 22px;
    overflow: hidden;
}

.cumple-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.cumple-title-modern {
    font-size: 16px;
    font-weight: 700;
    color: #0b1c30;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cumple-badge-modern {
    background-color: #eff4ff;
    color: #115cb9;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 9999px;
}

.cumple-body-modern {
    padding: 16px 20px;
}

.cumple-empty {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    padding: 20px 0;
}

.cumple-item-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cumple-item-modern:last-child {
    border-bottom: none;
}

.cumple-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cumple-avatar-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
}

.cumple-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #115cb9;
}

.cumple-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cumple-avatar-badge i {
    font-size: 10px;
    color: #ef4444;
}

.cumple-info {
    display: flex;
    flex-direction: column;
}

.cumple-name {
    font-size: 12px;
    font-weight: 700;
    color: #0b1c30;
    text-transform: uppercase;
    line-height: 1.3;
}

.cumple-date {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.cumple-wish-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cumple-wish-btn:hover {
    background-color: #eff4ff;
    color: #115cb9;
}

.cumple-footer-modern {
    padding: 12px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.cumple-all-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    color: #45474c;
    border: 1px solid #cbd5e1;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.cumple-all-btn:hover {
    background-color: #f1f5f9;
    color: #0b1c30;
    border-color: #94a3b8;
}

/* ==========================================================================
   ALERT BOX CARDS (EVENTOS ADVERSOS & TARJETA AMARILLA)
   ========================================================================== */

.action-card-alert {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-width: 1px;
    border-style: solid;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.action-card-alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.action-card-alert.eventos-adversos {
    border-color: #fecaca;
    background-color: #fffafb;
    border-left: 5px solid #ef4444;
}

.action-card-alert.eventos-adversos .alert-icon-box {
    background-color: #fee2e2;
    color: #ef4444;
}

.action-card-alert.tarjeta-amarilla {
    border-color: #fef08a;
    background-color: #fffdf5;
    border-left: 5px solid #eab308;
}

.action-card-alert.tarjeta-amarilla .alert-icon-box {
    background-color: #fef9c3;
    color: #ca8a04;
}

.alert-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.alert-text-box {
    display: flex;
    flex-direction: column;
}

.alert-text-title {
    font-size: 14px;
    font-weight: 700;
    color: #0b1c30;
}

.alert-text-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* ==========================================================================
   2X2 ACTION GRID WIDGETS
   ========================================================================== */

.action-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 30px;
}

.action-grid-item {
    background-color: #ffffff;
    border: 1px solid #e5eeff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(9, 20, 38, 0.02);
    text-align: center;
}

.action-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(9, 20, 38, 0.05);
    border-color: #cbd5e1;
}

.action-grid-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eff4ff;
    color: #115cb9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.action-grid-item:hover .action-grid-icon-box {
    background-color: #115cb9;
    color: #ffffff;
}

.action-grid-title {
    font-size: 12px;
    font-weight: 600;
    color: #45474c;
}

.action-grid-item:hover .action-grid-title {
    color: #115cb9;
}

/* Logout menu button at bottom of sidebar */
.logout-sidebar-btn {
    border-top: 1px solid #f1f5f9 !important;
    margin-top: auto !important;
    padding-top: 15px !important;
}

.logout-sidebar-btn .list-group-item {
    color: #ef4444 !important;
}

.logout-sidebar-btn .list-group-item i {
    color: #ef4444 !important;
}

.logout-sidebar-btn .list-group-item:hover {
    background-color: #fef2f2 !important;
    border-left-color: #ef4444 !important;
}

/* Footer Section */
.footer {
    background-color: #ffffff !important;
    border-top: 1px solid #e5eeff !important;
    color: #64748b !important;
    font-size: 12px !important;
    padding: 20px 0 !important;
    margin-top: 40px;
}

.footer a {
    color: #115cb9 !important;
}

/* ==========================================================================
   NEW MODERN SPLIT PAGE LAYOUT & SIDEBAR
   ========================================================================== */

.modern-layout-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    margin-top: 56px !important; /* height of navbar */
}

.modern-layout-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: calc(100vh - 56px);
}

.modern-sidebar-col {
    background-color: #ffffff !important;
    border-right: 1px solid #e5eeff !important;
    padding: 28px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 4px 0 20px rgba(9, 20, 38, 0.015);
    z-index: 10;
}

.sidebar-header-brand {
    padding-bottom: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-brand-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #091426 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    letter-spacing: -0.5px;
}

.sidebar-brand-subtitle {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin-top: 6px;
    display: block;
}

/* Sidebar Menu styling */
.modern-sidebar-menu {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.modern-sidebar-col {
    padding: 15px 0 !important; /* Stretch sidebar menu full-width, zero lateral padding */
}

.modern-sidebar-menu .list-group-item {
    background: transparent !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #45474c !important;
    padding: 14px 24px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.15s ease !important;
    border-left: 4px solid transparent !important;
    border-radius: 0 !important;
    cursor: pointer !important;
}

.modern-sidebar-menu .list-group-item i {
    width: 20px;
    font-size: 16px;
    color: #64748b;
    margin-right: 12px !important;
    transition: color 0.15s ease;
}

.modern-sidebar-menu .list-group-item:hover {
    background-color: #eff4ff !important;
    color: #115cb9 !important;
    border-left-color: #115cb9 !important;
    padding-left: 24px !important;
}

.modern-sidebar-menu .list-group-item:hover i {
    color: #115cb9;
}

.modern-sidebar-menu .list-group-item.active {
    background-color: #d3e4fe !important;
    color: #0b1c30 !important;
    font-weight: 700 !important;
    border-left-color: #115cb9 !important;
}

.modern-sidebar-menu .list-group-item.active i {
    color: #115cb9;
}

/* Main column layouts */
.modern-layout-row > .col-lg-6 {
    padding: 32px 28px !important;
    background-color: #f8f9ff;
}

.modern-layout-row > .col-lg-3:not(.modern-sidebar-col) {
    padding: 32px 24px !important;
    background-color: #f8f9ff;
    border-left: 1px solid #f1f5f9;
}

/* ==========================================================================
   FEATURED BADGES & CARDS HIGHLIGHTS
   ========================================================================== */

.featured-badge {
    background: linear-gradient(135deg, #115cb9, #659dfe);
    color: #ffffff;
    font-family: 'Outfit', sans-serif !important;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(17, 92, 185, 0.15);
}

.featured-badge i {
    font-size: 10px;
    margin-right: 6px;
}

/* Highlight the latest post */
.modern-layout-row > .col-lg-6 .news-feed-card:first-of-type {
    box-shadow: 0 12px 40px rgba(9, 20, 38, 0.05) !important;
}

/* ==========================================================================
   EYE-CATCHING BIRTHDAY CARD STYLINGS
   ========================================================================== */

.cumple-card-modern {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5eeff;
    box-shadow: 0 8px 30px rgba(9, 20, 38, 0.03);
    margin-bottom: 22px;
    overflow: hidden;
    position: relative;
}

.cumple-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #115cb9, #659dfe, #ede3b8);
}

.cumple-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 14px 20px;
    border-bottom: 1px solid #eff4ff;
    background-color: #ffffff;
}

.cumple-title-modern {
    font-family: 'Outfit', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #0b1c30;
    margin: 0;
    display: flex;
    align-items: center;
}

.cumple-title-modern i {
    margin-right: 8px;
    animation: wave-birthday 2.5s infinite;
    transform-origin: bottom right;
}

@keyframes wave-birthday {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.cumple-badge-modern {
    background: linear-gradient(135deg, #eff4ff, #d3e4fe);
    color: #115cb9;
    font-family: 'Inter', sans-serif !important;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cumple-body-modern {
    padding: 10px 20px 16px 20px;
}

.cumple-item-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f8fafc;
}

.cumple-item-modern:last-child {
    border-bottom: none;
}

.cumple-avatar-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #115cb9, #659dfe);
    box-shadow: 0 4px 10px rgba(17, 92, 185, 0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cumple-avatar-wrapper:hover {
    transform: scale(1.08);
}

.cumple-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
}

.cumple-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: heart-pulse 2s infinite;
}

@keyframes heart-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.cumple-avatar-badge i {
    font-size: 10px;
    color: #ef4444;
}

.cumple-name {
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px;
    font-weight: 700;
    color: #0b1c30;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.cumple-date {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

.cumple-wish-btn {
    background-color: #eff4ff;
    border: none;
    color: #115cb9;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(17, 92, 185, 0.05);
}

.cumple-wish-btn:hover {
    background-color: #115cb9;
    color: #ffffff;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 10px rgba(17, 92, 185, 0.2);
}

.cumple-footer-modern {
    padding: 16px 20px;
    background-color: #ffffff;
    border-top: 1px solid #eff4ff;
}

.cumple-all-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    color: #115cb9;
    border: 1.5px solid #115cb9;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.cumple-all-btn:hover {
    background-color: #115cb9;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(17, 92, 185, 0.15);
}

/* ==========================================================================
   RESPONSIVE LAYOUT SCROLL MENU ON MOBILE
   ========================================================================== */

@media (max-width: 991px) {
    .modern-layout-container {
        margin-top: 56px !important;
    }
    
    .modern-sidebar-col {
        border-right: none !important;
        border-bottom: 1px solid #e5eeff !important;
        padding: 12px 16px !important;
        min-height: auto !important;
        box-shadow: 0 4px 12px rgba(9, 20, 38, 0.03) !important;
    }
    
    .sidebar-header-brand {
        display: none !important;
    }
    
    .modern-sidebar-menu {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap !important;
        padding: 4px 0 !important;
        scrollbar-width: none; /* Hide scrollbar on Firefox */
    }
    
    .modern-sidebar-menu::-webkit-scrollbar {
        display: none; /* Hide scrollbar on Chrome/Safari/Webkit */
    }
    
    .modern-sidebar-menu .list-group-item {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 0 !important;
        margin-right: 8px !important;
        padding: 8px 16px !important;
        flex-shrink: 0 !important;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
        border-radius: 8px !important;
    }

    .modern-sidebar-menu .list-group-item.active {
        border-bottom-color: #115cb9 !important;
        background-color: #eff4ff !important;
    }
    
    .logout-sidebar-btn {
        margin-top: 0 !important;
        border-top: none !important;
        padding-top: 0 !important;
        display: inline-flex !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }
    
    .logout-sidebar-btn .list-group-item {
        margin-bottom: 0 !important;
        border-bottom: 3px solid transparent !important;
    }
    
    .logout-sidebar-btn .list-group-item:hover {
        border-bottom-color: #ef4444 !important;
    }

    .modern-layout-row > .col-lg-6 {
        padding: 20px 16px !important;
    }

    .modern-layout-row > .col-lg-3:not(.modern-sidebar-col) {
        padding: 20px 16px !important;
        border-left: none !important;
        border-top: 1px solid #f1f5f9 !important;
    }
}

/* Hexagon/Polygonal styles (from list_funcionarios.blade.php) */
.hexagon-wrapper {
    width: 52px;
    height: 57px;
    background-color: #d1c79d; /* Borde dorado institucional */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(209, 199, 157, 0.3));
}

.hexagon-wrapper:hover {
    transform: scale(1.12) rotate(3deg);
    background-color: #659dfe;
}

.usuImage {
    width: 48px;
    height: 53px;
    object-fit: cover;
    object-position: top;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: #fff;
    cursor: pointer;
    display: block;
}

/* Centered content alignments and container constraints */
#container {
    margin-top: 15px !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Modal adjustments */
#FotoModal {
    background: rgba(0, 0, 0, 0.4) !important;
}
#FotoModal .modal-dialog { 
    max-width: 280px !important;
    margin: 12% auto !important;
}
#FotoModal .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
#FotoModal .modal-body {
    padding: 0 !important;
    background: transparent !important;
}

.hexagon-modal-wrapper {
    width: 240px;
    height: 264px;
    background-color: #115cb9;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.foto-modal-elegante {
    width: 232px;
    height: 255px;
    object-fit: cover;
    object-position: top;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: #fff;
    display: block;
}

/* Emoji particles floating animation */
@keyframes emoji-float {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}
.emoji-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 24px;
    animation: emoji-float 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ==========================================================================
   NEW NEWS FEED CARDS LAYOUT (CONDENSED STYLE)
   ========================================================================== */
.news-feed-card {
    border-radius: 12px !important;
    border: 1px solid #e5eeff !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(9, 20, 38, 0.015) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.news-feed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(9, 20, 38, 0.05) !important;
    border-color: #cbd5e1 !important;
}

.news-feed-card .card-body {
    padding: 16px 20px !important;
}

.news-header-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.publisher-badge-modern {
    background: linear-gradient(135deg, #115cb9, #004494);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(17, 92, 185, 0.15);
}

.publisher-badge-modern i {
    margin-right: 4px;
}

.news-meta-details {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    color: #64748b;
    flex-wrap: wrap;
    margin-left: 8px;
}

.news-author-name {
    font-weight: 600;
    color: #45474c;
}

.news-meta-divider {
    margin: 0 6px;
    color: #cbd5e1;
}

.news-meta-divider-sub {
    margin: 0 4px;
    color: #e2e8f0;
}

.news-date-time {
    display: inline-flex;
    align-items: center;
}

.news-date-time i {
    color: #94a3b8;
    margin-right: 3px;
}

.news-title-link {
    text-decoration: none !important;
    color: inherit !important;
}

.news-feed-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0b1c30 !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    transition: color 0.2s ease;
}

.news-title-link:hover .news-feed-title {
    color: #115cb9 !important;
}

.news-feed-excerpt {
    font-family: 'Inter', sans-serif !important;
    font-size: 12.5px !important;
    color: #45474c !important;
    line-height: 1.5 !important;
    text-align: justify;
    margin-bottom: 12px;
}

.news-feed-footer {
    display: flex;
    justify-content: flex-end;
}

.news-read-more-btn {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #115cb9;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.news-read-more-btn i {
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.news-read-more-btn:hover {
    color: #004494;
}

.news-read-more-btn:hover i {
    transform: translateX(3px);
}

/* Featured cover photo image layout */
.featured-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid #f1f5f9;
    max-height: 300px;
    background-color: #f8fafc;
}

.featured-image-modern {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.featured-image-wrapper:hover .featured-image-modern {
    transform: scale(1.02);
}

/* Featured News Card modern border styling */
.featured-news-card {
    box-shadow: 0 8px 20px rgba(17, 92, 185, 0.06) !important;
}

/* ==========================================================================
   NEWS CATEGORY BADGES, BORDERS, AND HOVERS (UNIFORM COLORS)
   ========================================================================== */
.border-t-secondary {
    border-top: 2px solid #115cb9 !important;
}
.badge-secondary-light {
    background-color: rgba(17, 92, 185, 0.1) !important;
    color: #115cb9 !important;
}
.border-t-secondary .featured-badge {
    background: linear-gradient(135deg, #115cb9, #659dfe) !important;
    box-shadow: 0 4px 10px rgba(17, 92, 185, 0.15) !important;
}
.news-feed-card.border-t-secondary:hover {
    border-color: #115cb9 !important;
}
.news-feed-card.border-t-secondary:hover .news-feed-title {
    color: #115cb9 !important;
}
.news-feed-card.border-t-secondary:hover .news-read-more-btn {
    color: #0b1c30 !important;
}

.border-t-tertiary {
    border-top: 2px solid #665f3d !important;
}
.badge-tertiary-light {
    background-color: rgba(102, 95, 61, 0.1) !important;
    color: #665f3d !important;
}
.border-t-tertiary .featured-badge {
    background: linear-gradient(135deg, #665f3d, #9c9263) !important;
    box-shadow: 0 4px 10px rgba(102, 95, 61, 0.15) !important;
}
.news-feed-card.border-t-tertiary:hover {
    border-color: #665f3d !important;
}
.news-feed-card.border-t-tertiary:hover .news-feed-title {
    color: #665f3d !important;
}
.news-feed-card.border-t-tertiary:hover .news-read-more-btn {
    color: #665f3d !important;
}

.border-t-primary {
    border-top: 2px solid #091426 !important;
}
.badge-primary-light {
    background-color: rgba(9, 20, 38, 0.1) !important;
    color: #091426 !important;
}
.border-t-primary .featured-badge {
    background: linear-gradient(135deg, #091426, #2a3b5c) !important;
    box-shadow: 0 4px 10px rgba(9, 20, 38, 0.15) !important;
}
.news-feed-card.border-t-primary:hover {
    border-color: #091426 !important;
}
.news-feed-card.border-t-primary:hover .news-feed-title {
    color: #091426 !important;
}
.news-feed-card.border-t-primary:hover .news-read-more-btn {
    color: #091426 !important;
}

.border-t-error {
    border-top: 2px solid #ba1a1a !important;
}
.badge-error-light {
    background-color: rgba(186, 26, 26, 0.1) !important;
    color: #ba1a1a !important;
}
.border-t-error .featured-badge {
    background: linear-gradient(135deg, #ba1a1a, #ef4444) !important;
    box-shadow: 0 4px 10px rgba(186, 26, 26, 0.15) !important;
}
.news-feed-card.border-t-error:hover {
    border-color: #ba1a1a !important;
}
.news-feed-card.border-t-error:hover .news-feed-title {
    color: #ba1a1a !important;
}
.news-feed-card.border-t-error:hover .news-read-more-btn {
    color: #ba1a1a !important;
}
.border-t-health {
    border-top: 2px solid #0d9488 !important;
}
.badge-health-light {
    background-color: rgba(13, 148, 136, 0.1) !important;
    color: #0d9488 !important;
}
.border-t-health .featured-badge {
    background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.15) !important;
}
.news-feed-card.border-t-health:hover {
    border-color: #0d9488 !important;
}
.news-feed-card.border-t-health:hover .news-feed-title {
    color: #0d9488 !important;
}
.news-feed-card.border-t-health:hover .news-read-more-btn {
    color: #0d9488 !important;
}

.badge-category {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-sidebar-col {
    border-right: 1px solid #e2e8f0 !important;
}
