/* ==========================================
   ARTICLE SIDEBAR - Base Styles
   ========================================== */

.article-sidebar {
    width: 280px;
    flex-shrink: 0;
    padding-bottom: 60px;
}

.sidebar-sticky-wrapper {
    position: sticky;
    top: 154px;
}

/* ==========================================
   SIDEBAR DRAWER COMPONENTS - Hidden by Default
   ========================================== */

.sidebar-drawer-header {
    display: none;
}

.sidebar-drawer-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0084c9 0%, #00a5db 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 132, 201, 0.3);
    z-index: 1500;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.sidebar-drawer-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 132, 201, 0.4);
}

.sidebar-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}


/* ==========================================
   WITH LEFT SIDEBAR - Drawer at 1199px
   ========================================== */

@media (max-width: 1199px) {
    .article-sidebar {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 280px;
        height: 100vh;
        height: 100dvh;
        background: white;
        z-index: 2001;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
        padding: 0;
        margin: 0;
    }

    .article-sidebar.active {
        right: 0;
    }

    .article-sidebar .sidebar-sticky-wrapper {
        position: static;
        top: auto;
        padding: 20px;
    }

    .article-sidebar .sidebar-widget {
        border: none;
        border-bottom: 1px solid #e8e8e8;
        border-radius: 0;
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .article-sidebar .sidebar-widget:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .sidebar-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid #e8e8e8;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
    }

    .sidebar-drawer-title {
        font-family: 'Ruda', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #0084c9;
    }

    .sidebar-drawer-close {
        background: none;
        border: none;
        font-size: 28px;
        color: #595959;
        cursor: pointer;
        padding: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s ease;
    }

    .sidebar-drawer-close:hover {
        color: #0084c9;
    }

    .sidebar-drawer-toggle {
        display: flex;
    }
}

/* ==========================================
   NO LEFT SIDEBAR - Override breakpoints
   ========================================== */

/* Keep sidebar visible until 950px */
.no-sidebar .article-sidebar {
    display: block;
    position: relative;
    width: 280px;
    height: auto;
    right: auto;
    top: auto;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    padding-bottom: 60px;
    z-index: auto;
}

.no-sidebar .article-sidebar .sidebar-sticky-wrapper {
    position: sticky;
    top: 154px;
    padding: 0;
}

.no-sidebar .article-sidebar .sidebar-widget {
    border: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.no-sidebar .sidebar-drawer-header {
    display: none;
}

.no-sidebar .sidebar-drawer-toggle {
    display: none;
}

/* NO LEFT SIDEBAR - Drawer at 950px */
@media (max-width: 950px) {
    .no-sidebar .article-sidebar {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 280px;
        height: 100vh;
        height: 100dvh;
        background: white;
        z-index: 2001;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
        padding: 0;
        margin: 0;
    }

    .no-sidebar .article-sidebar.active {
        right: 0;
    }

    .no-sidebar .article-sidebar .sidebar-sticky-wrapper {
        position: static;
        top: auto;
        padding: 20px;
    }

    .no-sidebar .article-sidebar .sidebar-widget {
        border: none;
        border-bottom: 1px solid #e8e8e8;
        border-radius: 0;
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .no-sidebar .article-sidebar .sidebar-widget:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .no-sidebar .sidebar-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid #e8e8e8;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
    }

    .no-sidebar .sidebar-drawer-title {
        font-family: 'Ruda', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #0084c9;
    }

    .no-sidebar .sidebar-drawer-close {
        background: none;
        border: none;
        font-size: 28px;
        color: #595959;
        cursor: pointer;
        padding: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s ease;
    }

    .no-sidebar .sidebar-drawer-close:hover {
        color: #0084c9;
    }

    .no-sidebar .sidebar-drawer-toggle {
        display: flex;
    }
}




/* Sidebar Widget Styles */
.sidebar-widget {
	background: white;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 25px;
}

.widget-title {
	font-family: 'Ruda', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #595959;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #0084c9;
}

/* Table of Contents Styles */
.toc-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.toc-link {
	padding: 8px 12px;
	color: #777;
	text-decoration: none;
	font-size: 14px;
	border-left: 3px solid transparent;
	transition: all 0.2s ease;
	margin-left: -20px;
	padding-left: 17px;
}

.toc-link:hover {
	color: #0084c9;
	background: #f9f9f9;
	border-left-color: #e0e0e0;
}

.toc-link.active {
	color: #0084c9;
	font-weight: 500;
	border-left-color: #0084c9;
	background: #f0f8fc;
}

/* Related Resources Styles */
.related-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.related-item {
	display: flex;
	gap: 12px;
	padding: 10px;
	background: #fafafa;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.2s ease;
	align-items: center;
}

.related-item:hover {
	background: #f0f8fc;
	transform: translateX(2px);
}

.related-icon {
	flex-shrink: 0;
}

.related-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.related-title {
	font-size: 14px;
	font-weight: 500;
	color: #595959;
	line-height: 1.3;
}

.related-type {
	font-size: 12px;
	color: #999;
}

/* Quick Stats Widget */
.stats-widget .stats-items {
display: flex;
flex-direction: column;
gap: 18px;
}

.stat-item {
text-align: center;
padding: 15px;
background: linear-gradient(135deg, #f0f8fc 0%, #f9f9f9 100%);
border-radius: 6px;
border-left: 3px solid #0084c9;
}

.stat-number {
font-family: 'Ruda', sans-serif;
font-size: 28px;
font-weight: 700;
color: #0084c9;
line-height: 1;
margin-bottom: 6px;
}

/* Key Takeaways Widget */
.takeaway-list {
list-style: none;
padding: 0;
margin: 0;
}

.takeaway-list li {
padding: 10px 0 10px 28px;
font-size: 14px;
line-height: 1.5;
color: #595959;
position: relative;
border-bottom: 1px solid #f0f0f0;
}

.takeaway-list li:last-child {
border-bottom: none;
}

.takeaway-list li::before {
content: '✓';
position: absolute;
left: 0;
color: #00db6d;
font-weight: 700;
font-size: 16px;
}

/* Contact Expert Widget */
.contact-content {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 12px;
}

.contact-avatar {
width: 70px;
height: 70px;
border-radius: 50%;
overflow: hidden;
border: 3px solid #0084c9;
}

.contact-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}

.contact-info {
display: flex;
flex-direction: column;
gap: 2px;
}

.contact-name {
font-weight: 600;
font-size: 15px;
color: #595959;
}

.contact-title {
font-size: 13px;
color: #999;
}

.contact-btn {
display: block;
width: 100%;
padding: 10px 16px;
background: #0084c9;
color: white;
text-decoration: none;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
transition: all 0.3s ease;
margin-top: 4px;
}

.contact-btn:hover {
background: #00a5db;
transform: translateY(-1px);
}

/* Timeline Widget */
.timeline-items {
position: relative;
padding-left: 20px;
}

.timeline-items::before {
content: '';
position: absolute;
left: 6px;
top: 8px;
bottom: 8px;
width: 2px;
background: #e8e8e8;
}

.timeline-item {
position: relative;
padding-bottom: 20px;
}

.timeline-item:last-child {
padding-bottom: 0;
}

.timeline-marker {
position: absolute;
left: -20px;
top: 4px;
width: 14px;
height: 14px;
border-radius: 50%;
background: white;
border: 2px solid #e8e8e8;
transition: all 0.3s ease;
}

.timeline-item.completed .timeline-marker {
background: #00db6d;
border-color: #00db6d;
}

.timeline-item.active .timeline-marker {
background: #0084c9;
border-color: #0084c9;
box-shadow: 0 0 0 4px rgba(0,132,201,0.1);
}

.timeline-content {
display: flex;
flex-direction: column;
gap: 2px;
}

.timeline-date {
font-weight: 600;
font-size: 13px;
color: #0084c9;
}

.timeline-item.completed .timeline-date {
color: #00db6d;
}

.timeline-text {
font-size: 13px;
color: #777;
line-height: 1.4;
}

.timeline-item.active .timeline-text {
color: #595959;
font-weight: 500;
}

/* Newsletter Signup Widget */
.newsletter-description {
font-size: 13px;
color: #777;
line-height: 1.5;
margin-bottom: 15px;
}

.newsletter-form {
display: flex;
flex-direction: column;
gap: 10px;
}

.newsletter-input {
padding: 10px 12px;
border: 1px solid #e0e0e0;
border-radius: 6px;
font-size: 14px;
font-family: 'Roboto', sans-serif;
transition: all 0.3s ease;
}

.newsletter-input:focus {
outline: none;
border-color: #0084c9;
box-shadow: 0 0 0 3px rgba(0,132,201,0.1);
}

.newsletter-submit {
padding: 10px 16px;
background: #0084c9;
color: white;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
font-family: 'Roboto', sans-serif;
}

.newsletter-submit:hover {
background: #00a5db;
transform: translateY(-1px);
}


/* Upcoming Event Widget */
.event-card {
display: flex;
flex-direction: column;
background: #fafafa;
border-radius: 8px;
overflow: hidden;
transition: all 0.3s ease;
}

.event-card:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.event-image {
position: relative;
width: 100%;
height: 140px;
overflow: hidden;
}

.event-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
transform: scale(1.05);
}

.event-date-badge {
position: absolute;
top: 12px;
right: 12px;
background: white;
border-radius: 8px;
padding: 8px 12px;
text-align: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
min-width: 60px;
}

.event-month {
font-size: 11px;
font-weight: 600;
color: #0084c9;
text-transform: uppercase;
letter-spacing: 0.5px;
line-height: 1;
margin-bottom: 2px;
}

.event-day {
font-family: 'Ruda', sans-serif;
font-size: 24px;
font-weight: 700;
color: #595959;
line-height: 1;
}

.event-content {
padding: 16px;
display: flex;
flex-direction: column;
gap: 10px;
}

.event-title {
font-family: 'Ruda', sans-serif;
font-size: 15px;
font-weight: 700;
color: #595959;
line-height: 1.3;
margin: 0;
}

.event-description {
font-size: 13px;
line-height: 1.5;
color: #777;
margin: 0;
}

.event-btn {
display: inline-block;
padding: 8px 16px;
background: #0084c9;
color: white;
text-decoration: none;
border-radius: 6px;
font-size: 13px;
font-weight: 600;
text-align: center;
transition: all 0.3s ease;
margin-top: 4px;
}

.event-btn:hover {
background: #00a5db;
transform: translateY(-1px);
}

/* Upcoming Event Widget (Text Only) */
.event-card-text {
background: linear-gradient(135deg, #f0f8fc 0%, #fafafa 100%);
border: 1px solid #e8e8e8;
border-radius: 8px;
padding: 18px;
transition: all 0.3s ease;
}

.event-card-text:hover {
border-color: #0084c9;
box-shadow: 0 4px 12px rgba(0,132,201,0.1);
}

.event-details-text {
display: flex;
flex-direction: column;
gap: 12px;
}

.event-meta-text {
display: flex;
flex-direction: column;
gap: 6px;
padding-bottom: 8px;
border-bottom: 1px solid #e8e8e8;
}

.event-meta-item-text {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
color: #777;
}

.event-meta-item-text i {
color: #0084c9;
font-size: 11px;
width: 14px;
text-align: center;
}

.event-meta-item-text span {
line-height: 1.4;
}

.event-title-text {
font-family: 'Ruda', sans-serif;
font-size: 16px;
font-weight: 700;
color: #595959;
line-height: 1.3;
margin: 0;
}

.event-subtitle-text {
font-size: 13px;
line-height: 1.5;
color: #777;
margin: 0;
font-style: italic;
}

.event-btn-text {
display: inline-block;
padding: 10px 20px;
background: #0084c9;
color: white;
text-decoration: none;
border-radius: 6px;
font-size: 13px;
font-weight: 600;
text-align: center;
transition: all 0.3s ease;
margin-top: 4px;
}

.event-btn-text:hover {
background: #00a5db;
transform: translateY(-1px);
}

/* No Events Widget Styles */
.no-events-card {
	text-align: center;
	padding: 30px 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border: 2px dashed #e0e0e0;
}

.no-events-icon {
	color: #595959;
	opacity: 0.4;
	margin-bottom: 15px;
}

.no-events-icon svg {
	display: inline-block;
}

.no-events-content {
	max-width: 280px;
	margin: 0 auto;
}

.no-events-title {
	font-family: 'Ruda', sans-serif;
	font-size: 18px;
	color: #595959;
	margin: 0 0 12px 0;
	font-weight: 600;
}

.no-events-description {
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	color: #595959;
	line-height: 1.6;
	margin: 0 0 20px 0;
}

.no-events-btn {
	background-color: #0084c9;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.no-events-btn:hover {
	background-color: #00a5db;
	transform: translateY(-1px);
}

