/* Custom CSS for PostNuke Blocks & Consolidated Styles */

/* ==========================================================================
   Global Site Styles
   ========================================================================== */

/* Smooth transitions */
* { transition: all 0.2s ease-in-out; }

/* Existing pn-* class styles */
.pn-title { font-size: 1.25rem; font-weight: 700; }
.pn-normal { font-size: 1rem; }
.pn-sub { font-size: 0.875rem; color: #4b5563; }

/* Modern card styles */
.card {
	background-color: white;
	border-radius: 0.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	padding: 0.5rem;
	margin-bottom: 1rem;
	max-width: 100%;
	box-sizing: border-box;
    /* overflow: hidden; Removed to allow modals */
}

/* Responsive images */
img { max-width: 100%; height: auto; }

/* Banner images */
.banner { width: 100%; height: auto; }

/* MOBILE OVERFLOW PREVENTION */
html, body { overflow-x: hidden; width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

/* Thin overlay scrollbar so it doesn't clash with the fixed navbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.25) transparent;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(0,0,0,0.4); }

/* Main Grid Layout - Critical for preventing tiny strip issue */
main.site-grid {
	display: grid !important;
	grid-template-columns: 1fr 300px !important;
	gap: 1.5rem !important;
	align-items: start !important;
	width: 100% !important;
	max-width: 1400px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0.5rem;
	box-sizing: border-box !important;
}

main.site-grid > .main-content {
	grid-column: 1 / 2 !important;
	grid-row: 1 !important;
	min-width: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* When main-content is the only child (no sidebar), span full width */
main.site-grid > .main-content:only-child {
	grid-column: 1 / -1 !important;
}

/* Ensure all children of main-content fill available width */
.main-content > *,
.main-content .forum-content-wrapper,
.main-content .forum-posts-container {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

main.site-grid > .sidebar,
main.site-grid > aside {
	grid-column: 2 / 3 !important;
	grid-row: 1 !important;
	display: block !important;
	width: 300px !important;
	min-width: 300px !important;
	max-width: 300px !important;
	align-self: start !important;
}

/* Large screens - center the layout */
@media (min-width: 1400px) {
	main.site-grid {
		max-width: 1400px !important;
	}
}

@media (max-width: 1023px) {
	main.site-grid {
		grid-template-columns: 1fr !important;
		gap: 1rem !important;
		padding: 0 0.5rem !important;
	}

	main.site-grid > .main-content,
	main.site-grid > .sidebar,
	main.site-grid > aside {
		grid-column: 1 / -1 !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		grid-row: auto !important;
	}

	/* Ensure sidebar follows main content on mobile */
	main.site-grid > .sidebar,
	main.site-grid > aside {
		grid-row: 2 !important;
	}
}

/* Desktop layout (1024px+) - ensure proper column sizing */
@media (min-width: 1024px) {
	main.site-grid {
		display: grid !important;
		grid-template-columns: 1fr 300px !important;
	}

	main.site-grid > .main-content {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	/* Forum content should fill its container on desktop */
	.main-content .forum-content-wrapper,
	.main-content .forum-posts-container,
	.main-content .forum-post,
	.main-content article.forum-post {
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* ==========================================================================
   Navbar Styles
   ========================================================================== */

/* Modern Navbar Base */
.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-color, #1e3a8a) 0%, var(--brand-color-light, #3b82f6) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* Add padding to body to account for fixed navbar */
body { padding-top: 60px; }

.navbar-container {
    max-width: 1400px;
    height: 60px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Navbar Brand/Logo Styling */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0.5rem 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
    margin-right: 2rem;

background-color: transparent !important; /* Forces transparency */
    box-shadow: none;

}

.navbar-brand:hover {
    opacity: 0.9;
    text-decoration: none;
    color: white;
}

.navbar-logo {
    height: 40px;
    width: auto;
    display: block;
	background: none;
    background-color: transparent;
	filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.5));
}

.navbar-site-name {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
}

/* Mobile Account Link (shown in navbar bar on mobile only) */
.navbar-account-mobile {
    display: none;
}

.navbar-account-mobile a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    transition: background 0.2s;
}

.navbar-account-mobile a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
}

/* Avatar link in mobile navbar */
.navbar-avatar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    background: none !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
}

.navbar-avatar-link:hover {
    background: none !important;
    opacity: 0.85;
}

.navbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.navbar-avatar-icon {
    width: 32px;
    height: 32px;
    padding: 3px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.15);
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    z-index: 1001;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Share button - match hamburger style within navbar */
.share-btn {
    top: 6px !important;
/*
    right: 1rem !important;
    width: 40px !important;
    height: 40px !important;
*/
    background: rgba(255, 255, 255, 0.1) !important;
/*
    border-radius: 6px !important;
*/
    box-shadow: none !important;
}
.share-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}
.share-btn svg {
    fill: white !important;
}

.hamburger-menu span {
    display: block;
    width: 22px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navbar Links Container */
.navbar-links {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu > li {
    margin: 0;
    padding: 0;
}

.nav-menu > li > a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 4px;
}

.nav-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    color: white;
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.caret {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 0;
    padding: 0.5rem 0;
    padding-top: 0.75rem;
    list-style: none;
    z-index: 1001;
}

/* Bridge element to prevent hover gap */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.15s;
}

.dropdown-menu li a:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Standalone mobile account link (non-logged-in users) */
    .navbar-account-mobile {
        display: flex;
        align-items: center;
        order: 10;
        margin-right: 50px; /* Clear the fixed share button */
    }

    /* Mobile: avatar + bell group (logged-in users) */
    .navbar-right-group {
        display: flex;
        align-items: center;
        gap: 12px;
        order: 10;
        margin-right: 54px; /* Clear the fixed share button (42px + 12px gap) */
    }

    /* Hide the desktop bell from the hamburger menu */
    .notification-bell-desktop {
        display: none !important;
    }

    /* Hide the Account item from the hamburger dropdown on mobile */
    .nav-account-desktop {
        display: none !important;
    }

    .hamburger-menu {
        display: flex;
        order: -1;
        margin-right: 0.75rem;
    }

    .navbar-brand {
        margin-right: auto;
        font-size: 1rem;
    }

    .navbar-logo {
        height: 32px;
    }

    .navbar-site-name {
        font-size: 1rem;
    }

    .navbar-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--brand-color, #1e3a8a) 0%, var(--brand-color-light, #3b82f6) 100%);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .navbar-links.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu > li > a {
        padding: 0.875rem 1.5rem;
        border-radius: 0;
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    /* Dropdown on mobile */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        margin: 0;
        border-radius: 0;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    /* Show More dropdown items directly on mobile */
    .navbar-links.active .nav-menu > li.dropdown > a.dropdown-toggle {
        display: none !important;
    }

    .navbar-links.active .nav-menu > li.dropdown {
        display: block !important;
        border-bottom: none !important;
    }

    .navbar-links.active .dropdown-menu {
        position: static !important;
        display: block !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .navbar-links.active .dropdown-menu li a {
        color: white !important;
        padding: 0.875rem 1.5rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-links.active .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .navbar-links.active .dropdown-menu li:last-child a {
        border-bottom: none;
    }
}

/* ==========================================================================
   Forum & Module Styles
   ========================================================================== */

/* Custom visibility utility to force desktop display */
@media (max-width: 768px) {
    .desktop-only-flex { display: none !important; }
    .desktop-only-grid { display: none !important; }
    .mobile-only { display: block !important; }
}
@media (min-width: 769px) {
    .desktop-only-flex { display: inline-flex !important; }
    .desktop-only-grid { display: grid !important; }
    .mobile-only { display: none !important; }
}
/* Hide empty meta items */
.user-meta-item:empty { display: none !important; }

/* User Info & Avatar */
.userinfo_block { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-height: 40px; font-size: 12px; color: #6c757d; }

/* Unified Avatar Style - 32px Circular */
.user-avatar,
img.user-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  flex-shrink: 0;
  display: inline-block !important;
  object-fit: cover;
}

.user-rank { display: inline-block; padding: 2px 8px; background: #dbeafe; color: #1e40af; border-radius: 12px; font-size: 11px; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.user-posts, .user-votes { white-space: nowrap; flex-shrink: 0; font-size: 12px; }
.user-votes a { color: inherit; text-decoration: none; }
.user-votes a:hover { color: #1e40af; }

/* Body Container - main page wrapper */
.body-container-centered,
#bodyContainer {
	width: 100%;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
	box-sizing: border-box;
	overflow-x: hidden;
}

/* Forum Content Wrapper - ensures proper width on all viewports */
.forum-content-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 2px !important;
	padding-right: 2px !important;
	box-sizing: border-box !important;
}

/* Forum Posts Container */
.forum-posts-container {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

/* Forum Post Articles - ensure they fill container */
.forum-post,
article.forum-post {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Desktop forum layout - ensure content fills the main-content column */
@media (min-width: 1024px) {
	.forum-content-wrapper,
	.forum-posts-container,
	.forum-post,
	article.forum-post,
	.post-content-main,
	.postbody {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
}

/* Restore list bullets inside post content (Tailwind preflight strips them) */
.postbody ul, .post-content-main ul {
  list-style-type: disc !important;
  padding-left: 1.5em !important;
  margin: 0.5em 0 !important;
}
.postbody ol, .post-content-main ol {
  list-style-type: decimal !important;
  padding-left: 1.5em !important;
}

/* Thread Header */
.forum-thread-header { background: #f5f5f5; border: 1px solid #ddd; font-weight: bold; margin-bottom: 0.5rem; padding: 0.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #333 !important; width: 100%; }
.thread-search-form { display: inline-flex; align-items: center; gap: 0.5rem; width: 100%; justify-content: flex-end; }
.thread-search-form input[type="text"] { font-size: 12px; padding: 4px 8px; }
.thread-search-form input[type="submit"] { padding: 2px 8px; font-size: 11px; }

/* Thread header dropdown styling */
.header-dropdown-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 4px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #374151;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 24px 4px 8px;
    transition: all 0.15s ease;
}

.header-dropdown-select:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.header-dropdown-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Post Header */
.post-header-modernized { 
  display: flex; 
  flex-direction: row; 
  align-items: center; 
  gap: 0.5rem; 
  background: #fff; 
  border-bottom: 1px solid #edeff1; 
  min-height: 40px;
  flex-wrap: nowrap !important;
}
.post-author-info { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; flex-wrap: nowrap; flex-grow: 1; min-width: 0; }
.post-meta { display: flex; flex-direction: row; align-items: center; gap: 0.25rem; font-size: 12px; color: #7c7c7c; margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.post-meta::before { content: "•"; margin: 0 4px; }
.post_date { display: flex; align-items: center; gap: 4px; }
.post-header-actions { margin-left: auto; display: flex; align-items: center; }

/* Mobile Adjustments */
@media (max-width: 640px) {
  .post-header-modernized { flex-wrap: nowrap !important; }
  .user-meta-item { display: none !important; }
  .forum-thread-header { flex-direction: row; align-items: center; gap: 0.5rem; padding: 0.5rem; overflow-x: auto; }
  .thread-nav-right { width: 100%; flex-wrap: wrap; gap: 0.25rem; }
  .thread-search-form { flex-wrap: nowrap; order: 10; width: 100%; margin-top: 0.25rem; }
  .thread-search-input { min-width: 0; flex: 1; }
  .userinfo_block { width: auto; min-height: 30px; gap: 6px; font-size: 11px; }
  .forum-thread-header .navbar-select { font-size: 11px; padding: 3px 20px 3px 6px; }
  .header-dropdown-select { font-size: 11px; padding: 4px 6px; max-width: 90px; }
}

/* Thumbs Up */
form.thumbsup { display: inline-flex !important; align-items: center !important; gap: 0.5rem !important; padding: 0.5rem !important; }
form.thumbsup input.up, form.thumbsup input.down { display: inline-block !important; padding: 0.4rem 0.8rem !important; border: 2px solid !important; border-radius: 6px !important; cursor: pointer !important; min-width: 50px !important; background: white !important; }
form.thumbsup input.up { color: #059669 !important; border-color: #059669 !important; }
form.thumbsup input.down { color: #dc2626 !important; border-color: #dc2626 !important; }

/* Quick Reply */
.quick-reply-divider { border: none; border-top: 2px solid #e8e6e6; margin: 20px 0; }
.quick-reply-header { display: grid; grid-template-columns: 1fr 2fr; gap: 1px; background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-color-light) 100%); border-radius: 8px 8px 0 0; }
.quick-reply-header th { background: #fff; padding: 16px; font-weight: bold; font-size: 16px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-reply-container { display: grid; grid-template-columns: 300px 1fr; gap: 1px; background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-color-light) 100%); border-radius: 0 0 8px 8px; margin-bottom: 20px; }
#quick-reply-form { display: contents; }
.quick-reply-options, .quick-reply-editor { background: #fff; padding: 20px; }
.quick-reply-editor textarea { width: 100%; min-height: 200px; padding: 12px; border: 2px solid #e0e0e0; border-radius: 6px; }
@media (max-width: 768px) {
    .quick-reply-header { grid-template-columns: 1fr; }
    .quick-reply-header .mobile_remove { display: none; }
    .quick-reply-container { grid-template-columns: 1fr; }
}

/* Ensure bottom nav wraps on mobile */
.bottom-nav-container {
    flex-wrap: wrap !important;
    width: 100% !important;
}

/* Utilities & Fixes */
.navbar-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  color: black !important;
}

.force-text-black { color: black !important; }
.force-text-dark { color: #495057 !important; }
.force-text-white { color: white !important; }
.force-text-white-grad { color: white !important; }

/* Index page text color utilities */
.text-gray-600-forced { color: #4b5563 !important; }
.text-gray-700-forced { color: #374151 !important; }
.text-gray-500-forced { color: #6b7280 !important; }
.text-blue-600-forced { color: #2563eb !important; }
.text-gray-900-forced { color: #111827 !important; }
.text-green-positive { color: #008000 !important; }
.text-red-negative { color: #FF0000 !important; }

/* PM list header styling */
.pm-header-text { color: #495057 !important; }

/* Login/form header styling */
.form-header-title {
    color: #ffffff !important;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Topic review header padding */
.topic-review-header {
    padding: 10px 15px;
}

/* Quick reply header cell styling */
.quick-reply-header-cell {
    background: #fff;
    padding: 16px;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.quick-reply-header-cell-left {
    border-radius: 8px 0 0 0;
}

/*
body { background-color: var(--body-bg, #fff); color: var(--body-text, #000); }
a, a.pn-normal { color: var(--link-color, #0000FF); text-decoration: underline; }
*/

img[src="/images/poll.png"] { width: 16px !important; height: 16px !important; vertical-align: middle !important; margin-left: 4px !important; }

/* Anonymous User CTA Styling */
.register-cta {
    margin: 20px auto 20px;
    padding: 0;
    width: calc(100% - 24px);
    max-width: 28rem;
    text-align: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.register-cta-inner {
    background: #fff;
    padding: 24px;
    border-radius: 0;
}

.register-cta img {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto 16px;
}

.register-cta-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.register-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.register-cta-buttons a {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.register-cta-buttons a:first-of-type {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.register-cta-buttons a:last-of-type {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.register-cta-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .register-cta {
        margin: 20px 12px !important;
        padding: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .register-cta-inner {
        padding: 16px !important;
    }

    .register-cta img {
        max-width: 120px !important;
    }

    .register-cta-message {
        font-size: 14px !important;
    }

    .register-cta-buttons {
        gap: 8px !important;
    }

    .register-cta-buttons a {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .register-cta-buttons {
        flex-direction: column;
    }

    .register-cta-buttons a {
        width: 100%;
    }
}

/* ==========================================================================
   Posting Form Styles
   ========================================================================== */

.brand-gradient {
    background: linear-gradient(to right, var(--brand-color), var(--brand-color-light)) !important;
    color: white !important;
}

.brand-gradient h1,
.brand-gradient h2,
.brand-gradient h3,
.brand-gradient strong,
.brand-gradient div,
.brand-gradient span {
    color: white !important;
}

#postForm {
    max-width: 100%;
    margin: 0 auto;
}

.forumline {
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-color-light) 100%);
    border-radius: 8px;
    padding: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.forumline table {
    background: #fff;
    border-radius: 8px;
}

.forumline tr:first-child th {
    border-radius: 8px 8px 0 0;
}

.thc {
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-color-light) 100%);
    color: white !important;
    padding: 16px !important;
    font-size: 18px;
    font-weight: bold;
}

.row1, .row2 {
    padding: 12px !important;
}

.row1 {
    background: #f9f9f9 !important;
}

.row2 {
    background: #ffffff !important;
}

.row1 strong, .row1 b {
    color: var(--brand-color);
    font-weight: 600;
}

.post, input[type="text"], textarea {
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.post:focus, input[type="text"]:focus, textarea:focus {
    border-color: #9ca3af !important;
    outline: none !important;
    box-shadow: none !important;
}

button, input[type="submit"] {
	background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-color-light) 100%) !important;
    color: white !important;
}

.button, .mainoption, .liteoption {
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-color-light) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.button:hover, .mainoption:hover, .liteoption:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.liteoption {
    background: linear-gradient(135deg, var(--brand-color-light) 0%, #c4a3d9 100%) !important;
    opacity: 0.9;
}

.posting-form select {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 14px !important;
    background-color: white !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    max-width: 100% !important;
}

.posting-form select:focus {
    border-color: var(--brand-color-light) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

@media (min-width: 768px) {
    .posting-form select[name="f"] {
        max-width: 400px !important;
    }
}

.posting-form input[type="checkbox"] {
    cursor: pointer !important;
    width: 16px;
    height: 16px;
    accent-color: var(--brand-color);
}

.exp_header {
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-color-light) 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: transform 0.2s ease;
    user-select: none;
}

.exp_header:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#posttable {
    border-radius: 6px;
    overflow: visible;
}

.postimage {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.postimage:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.helpline {
    cursor: default !important;
    user-select: none;
}

.helpline:focus {
    outline: none;
    border-color: var(--brand-color) !important;
}

@media (max-width: 768px) {
    .posting-form .row1,
    .posting-form .row2 {
        display: block !important;
        width: 100% !important;
    }

    .posting-form .row1 strong {
        display: block;
        margin-bottom: 8px;
    }

    .posting-form input[type="text"],
    .posting-form .post {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   Upload Picture Styles
   ========================================================================== */

.upload-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.upload-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.upload-body {
    padding: 24px;
}

.upload-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.upload-preview {
    text-align: center;
    margin-bottom: 20px;
}

.upload-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.upload-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.upload-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.upload-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.upload-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.upload-btn-secondary:hover {
    background: #e0e0e0;
    text-decoration: none;
}

.upload-page-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Posting Form Additional Styles */
.posting-header {
    padding: 10px 15px;
}

.posttable-container {
    width: 100%;
    overflow: visible;
}

.exp_content {
    overflow: visible;
}

.exp_content.hidden {
    display: none;
}

.toolbar-inner {
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    overflow: visible;
}

.toolbar-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: visible;
}

.bbcode-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    overflow: visible;
}

.bbcode-buttons img {
    border: 0;
}

.helpbox-input {
    width: 100%;
    font-size: 12px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
    color: #555;
    font-family: monospace;
}

.word-count-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border-left: 4px solid var(--brand-color);
    border-radius: 6px;
    flex-wrap: wrap;
}

.word-count-label {
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

.word-count-number {
    color: var(--brand-color);
    font-weight: bold;
}

.word-count-tip {
    color: #666;
    font-size: 12px;
}

.word-count-tip strong {
    color: var(--brand-color);
}

.message-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.image-required-notice {
    margin: 16px 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #f39c12;
    border-radius: 6px;
    color: #856404;
}

.image-required-notice strong {
    color: #f39c12;
}

.jumpbox-container {
    margin-top: 20px;
}

/* ==========================================================================
   Search Highlighting
   ========================================================================== */

.search-highlight,
mark.search-highlight {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    color: #1a1a1a;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Thread search input - compact styling */
.thread-search-input {
    width: 120px !important;
    min-width: 80px !important;
    max-width: 150px !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
}

@media (max-width: 640px) {
    .thread-search-input {
        width: 80px !important;
        max-width: 100px !important;
    }
}

/* ==========================================================================
   Search Results Page Fixes
   ========================================================================== */

/* Fix h1 white on white issue - ensure search page h1 has proper color */
/* H1 inside gradient backgrounds should be white (handled by text-white class) */
/* H1 outside gradients should be dark */
/*
.forum-content-wrapper h1:not([class*="text-white"]):not(.force-text-white),
.main-content h1:not([class*="text-white"]):not(.force-text-white) {
    color: #1f2937 !important;
}
*/

/* But keep h1 white inside gradient divs */
.bg-gradient-to-r h1,
div[class*="gradient"] h1,
.forum-content-wrapper .bg-gradient-to-r h1,
.main-content .bg-gradient-to-r h1 {
    color: #ffffff !important;
}

/* ==========================================================================
   ViewForum Page - Modern Table Layout
   ========================================================================== */

/* Forum topic list container */
.viewforum-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Table styling */
.viewforum-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Header row */
.viewforum-header-row {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
}

.viewforum-header-row th {
    color: white;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Column widths */
.vf-col-topic { width: 45%; text-align: left; }
.vf-col-replies { width: 8%; text-align: center; }
.vf-col-rating { width: 12%; text-align: center; }
.vf-col-author { width: 12%; text-align: center; }
.vf-col-views { width: 8%; text-align: center; }
.vf-col-lastpost { width: 15%; text-align: center; }

/* Topic type separator row (Sticky, Announcement, etc.) */
.viewforum-topic-type-row td {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #d1d5db;
    font-weight: 600;
    color: #4b5563;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Topic row styling */
.viewforum-topic-row {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s ease;
}

.viewforum-topic-row:hover {
    background-color: #f9fafb;
}

.viewforum-topic-row:last-child {
    border-bottom: none;
}

.viewforum-topic-row td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #374151;
}

.viewforum-topic-row .vf-col-topic {
    text-align: left;
    padding-left: 1rem;
}

/* Topic type badge */
.vf-topic-type {
    font-weight: 600;
    color: #2563eb;
    margin-right: 0.25rem;
}

/* No topics row */
.vf-no-topics {
    padding: 2rem !important;
    text-align: center !important;
    color: #6b7280;
    font-style: italic;
}

/* Last post styling */
.vf-lastpost-time {
    font-size: 0.75rem;
    color: #6b7280;
}

.vf-lastpost-author {
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 500;
}

/* Forum filter/sort controls */
.viewforum-controls {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
}

/* Moderator info area */
.viewforum-moderator-info {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #4b5563;
    display: inline-block;
}

/* Forum pagination area */
.viewforum-pagination {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

/* Post new topic button */
.btn-post-new-topic {
	background: linear-gradient(135deg, var(--brand-color, #1e3a8a) 0%, var(--brand-color-light, #3b82f6) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
    transition: all 0.15s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-post-new-topic:hover {
    background: linear-gradient(to right, #1d4ed8, #1e40af);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* Topic title styling */
.viewforum-topic-title {
    font-weight: 500;
    color: #2563eb;
    transition: color 0.15s ease;
    word-break: break-word;
}

.viewforum-topic-title:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Mobile responsive - card layout */
@media (max-width: 768px) {
    .viewforum-table thead {
        display: none;
    }

    .viewforum-table,
    .viewforum-table tbody,
    .viewforum-table tr,
    .viewforum-table td {
        display: block;
        width: 100%;
    }

    .viewforum-topic-row {
        padding: 0.75rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .viewforum-topic-row td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.25rem 0;
        border: none;
        text-align: right;
    }

    .viewforum-topic-row td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        text-align: left;
        flex-shrink: 0;
        margin-right: 0.5rem;
    }

    .viewforum-topic-row .vf-col-topic {
        display: block;
        text-align: left;
        padding: 0 0 0.5rem 0;
        border-bottom: 1px solid #f3f4f6;
        margin-bottom: 0.5rem;
    }

    .viewforum-topic-row .vf-col-topic::before {
        display: none;
    }

    .viewforum-topic-type-row td {
        padding: 0.5rem 0.75rem;
    }

    .vf-col-lastpost {
        flex-direction: column;
        align-items: flex-end;
    }
}

/* ==========================================================================
   Forum Index Page - Table Layout
   ========================================================================== */

/* Forum index container */
.forumindex-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Table styling */
.forumindex-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Header row */
.forumindex-header-row {
	background: var(--brand-color-light, #3b82f6);
}

.forumindex-header-row th {
    color: white;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Column widths */
.fi-col-forum { width: 50%; text-align: left; }
.fi-col-topics { width: 10%; text-align: center; }
.fi-col-posts { width: 10%; text-align: center; }
.fi-col-lastpost { width: 30%; text-align: left; vertical-align: top; }

/* Forum row styling */
.forumindex-row {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s ease;
}

.forumindex-row:hover {
    background-color: #f9fafb;
}

.forumindex-row:last-child {
    border-bottom: none;
}

.forumindex-row td {
    padding: 0.75rem 0.5rem;
    vertical-align: top;
    font-size: 0.875rem;
    color: #374151;
}

.forumindex-row td.fi-col-topics,
.forumindex-row td.fi-col-posts {
    vertical-align: middle;
}

/* Forum column with icon and info */
.fi-forum-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.fi-forum-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.fi-forum-info {
    flex: 1;
    min-width: 0;
}

.fi-forum-name {
    font-weight: 600;
    font-size: 1rem;
    color: #2563eb;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.fi-forum-name:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.fi-forum-desc {
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.4;
    margin: 0;
}

/* Last post styling */
.fi-lastpost {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}
/*
.fi-lastpost a {
    color: #2563eb;
}
*/
.fi-lastpost a:hover {
    text-decoration: underline;
}

/* Mobile responsive - card layout */
@media (max-width: 768px) {
    .forumindex-table thead {
        display: none;
    }

    .forumindex-table,
    .forumindex-table tbody,
    .forumindex-table tr,
    .forumindex-table td {
        display: block;
        width: 100%;
    }

    .forumindex-row {
        padding: 0.75rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .forumindex-row td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.25rem 0;
        border: none;
        text-align: right;
    }

    .forumindex-row td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        text-align: left;
        flex-shrink: 0;
        margin-right: 0.5rem;
    }

    .forumindex-row .fi-col-forum {
        display: block;
        text-align: left;
        padding: 0 0 0.5rem 0;
        border-bottom: 1px solid #f3f4f6;
        margin-bottom: 0.5rem;
    }

    .forumindex-row .fi-col-forum::before {
        display: none;
    }

    /* Topics and Posts columns - inline display */
    .fi-col-topics,
    .fi-col-posts {
        display: inline-flex !important;
        width: auto !important;
        padding: 0.25rem 0.5rem !important;
        margin-right: 1rem;
    }

    /* Last Post column - full width, no label */
    .fi-col-lastpost {
        display: block !important;
        text-align: left !important;
        padding-top: 0.5rem !important;
        margin-top: 0.5rem;
        border-top: 1px solid #f3f4f6;
    }

    .fi-col-lastpost::before {
        display: none !important;
    }

    /* Modernized last post on mobile */
    .fi-lastpost-modern {
        flex-direction: row;
        gap: 10px;
    }

    .fi-lastpost-info {
        flex: 1;
    }

    .fi-lastpost-date {
        font-size: 11px;
    }

    .fi-lastpost-user {
        font-size: 12px;
    }

    .fi-lastpost-avatar {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   Related Topics Grid Styles
   ========================================================================== */

/* Line clamp utility for truncating text */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Related topics card images */
.crp_title + img,
.crp_title ~ img {
    max-width: 100% !important;
    max-height: 96px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

/* Related Topics Container */
.related-topics-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-top: 1rem;
    overflow: hidden;
}

.related-topics-header {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.related-topics-header h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Auto-fill grid - fits as many 120px items as possible */
.related-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
}

/* Individual topic card */
.related-topic-card {
    display: block;
    background: #f9fafb;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.15s ease;
}

.related-topic-card:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Image wrapper - constrained to 120px max width */
.related-topic-img-wrapper {
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
}

.related-topic-img {
    display: block;
    width: 100%;
    max-width: 120px;
    height: auto;
    max-height: 90px;
    /* contain (not cover) so square MLB team logos render whole rather than
       getting the top/bottom 15% clipped. NBA player headshots (~600x436)
       still fit cleanly with only a hair of letterboxing top/bottom. */
    object-fit: contain;
    border-radius: 0.25rem;
    margin: 0.5rem auto 0;
}

/* Topic title */
.related-topic-title {
    padding: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1f2937;
    display: -webkit-box;
/*
    -webkit-line-clamp: 2;
*/
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    text-align: center;
}

/* Brand Utility Classes */
.bg-brand { background-color: var(--brand-color, #1e3a8a) !important; }
.bg-brand-light { background-color: var(--brand-color-light, #3b82f6) !important; }
.bg-brand-lighter { background-color: color-mix(in srgb, var(--brand-color, #1e3a8a), white 90%) !important; }
.bg-brand-lightest { background-color: color-mix(in srgb, var(--brand-color, #1e3a8a), white 95%) !important; }
.bg-gradient-brand { background: linear-gradient(135deg, var(--brand-color, #1e3a8a) 0%, var(--brand-color-light, #3b82f6) 100%) !important; }
.text-brand { color: var(--brand-color, #1e3a8a) !important; }
.text-brand-light { color: var(--brand-color-light, #3b82f6) !important; }
.text-brand-dark { color: color-mix(in srgb, var(--brand-color, #1e3a8a), black 20%) !important; }
.border-brand { border-color: var(--brand-color, #1e3a8a) !important; }
.hover\:bg-brand:hover { background-color: var(--brand-color, #1e3a8a) !important; }
.hover\:bg-brand-light:hover { background-color: var(--brand-color-light, #3b82f6) !important; }
.hover\:text-brand:hover { color: var(--brand-color, #1e3a8a) !important; }

.border-brand-light { border-color: var(--brand-color-light, #3b82f6) !important; }
.border-brand-lighter { border-color: color-mix(in srgb, var(--brand-color, #1e3a8a), white 80%) !important; }

/* ==========================================================================
   Notification Bell & Dropdown
   ========================================================================== */

/* -- Bell icon shared styles (used in both desktop nav-menu and mobile top bar) -- */
.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: white;
    text-decoration: none !important;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-bell:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.notification-bell svg {
    width: 20px;
    height: 20px;
}

.notification-badge-count {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background-color: #ef4444;
    border-radius: 999px;
    pointer-events: none;
}

/* Desktop bell: sits inside nav-menu as an <li>, matches nav item spacing */
.notification-bell-desktop .notification-bell {
    padding: 0.75rem 0.75rem;
    border-radius: 4px;
}

/* Mobile bell + avatar group: hidden on desktop, shown on mobile via the
   @media (max-width: 768px) rule earlier in this file.  We use a min-width
   media query here so it never overrides the mobile rule regardless of
   source order. */
@media (min-width: 769px) {
    .navbar-right-group {
        display: none;
    }
}

/* Hide desktop bell <li> label on mobile (it's inside hamburger menu) */

.notification-dropdown {
    position: absolute;
    top: 100%; /* Below the navbar */
    right: 1rem;
    width: 360px;
    max-height: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}

.notification-header span {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.notification-header button {
    background: none;
    border: none;
    color: var(--brand-color, #1e3a8a);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.15s;
}

.notification-header button:hover {
    background-color: #f3f4f6;
}

.notification-list {
    overflow-y: auto;
    max-height: 440px;
    flex: 1;
}

.notification-empty {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
    font-size: 14px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none !important;
    color: #374151 !important;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.15s;
}

.notification-item:hover {
    background-color: #f9fafb;
}

.notification-item.unread {
    background-color: #eff6ff;
}

.notification-item.unread:hover {
    background-color: #dbeafe;
}

.notification-item.read {
    opacity: 0.6;
}

.notification-item.read:hover {
    opacity: 1;
}

.notification-read-check {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 14px;
    margin-top: 2px;
    margin-left: auto;
}

.notification-all-read {
    text-align: center;
    padding: 10px 16px;
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    background: #ecfdf5;
    border-bottom: 1px solid #d1fae5;
}

.notification-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
    background: #6b7280;
}

.notification-icon.type-pm {
    background-color: #8b5cf6;
}

.notification-icon.type-mention {
    background-color: #f59e0b;
}

.notification-icon.type-reply {
    background-color: #10b981;
}

.notification-icon.type-watch {
    background-color: #3b82f6;
}

.notification-icon.type-birthday {
    background: linear-gradient(135deg, #f472b6, #a855f7);
    font-size: 14px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 13px;
    line-height: 1.4;
    color: #374151;
    word-wrap: break-word;
}

.notification-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Mobile: full-width dropdown fixed below navbar */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 56px);
        border-radius: 0;
    }
}
