/* TOC BUTTONS FIXED - HOVER WORKING - Updated 2025-08-07 05:07 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CRITICAL: Force reload of TOC button styles */
.toc-force-reload-13-56 { display: none; }

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a365d;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: #2d3748;
    position: relative;
}



h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #2d3748;
}

h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #4a5568;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #4a5568;
    font-weight: 400;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(229, 62, 62, 0.1);
}

nav {
    padding: 1.25rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu li a:hover {
    color: #c53030;
    transform: translateY(-2px);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #c53030;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    padding: 0.75rem 0;
    list-style: none !important;
    list-style-type: none !important;
    z-index: 1001;
    min-width: 280px;
    border-top: 3px solid #c53030;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.5s;
    pointer-events: none;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

/* Keep dropdown open when hovering over menu items */
.dropdown-menu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

/* Add hover bridge to prevent dropdown from closing */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 1000;
}

/* Enhanced hover delay - keep dropdown open longer */
.dropdown-menu {
    transition-delay: 0s, 0s, 0s, 0s, 0.8s;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    transition-delay: 0s, 0s, 0s, 0s, 0s;
}

/* Improved dropdown item styling */
.dropdown-menu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
}

.dropdown-menu li {
    padding: 0;
    list-style: none !important;
    list-style-type: none !important;
    margin-bottom: 0;
    position: relative;
}

.dropdown-menu li::before,
.dropdown-menu li::after,
.dropdown-menu li::marker {
    display: none !important;
    content: none !important;
}

.dropdown-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #2d3748;
    font-size: 0.95rem;
    white-space: nowrap;
    text-align: left;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 10px;
    margin: 0 0.5rem;
    list-style: none !important;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    color: #c53030;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.1);
}

/* Removed dash/line effect from dropdown hover */
.dropdown-menu a::before {
    display: none !important;
}

.dropdown-menu a:hover::before {
    display: none !important;
}

.nav-menu li a.active {
    color: #c53030;
    font-weight: 600;
    position: relative;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(135deg, #e53e3e 0%, #f56565 100%);
    border-radius: 2px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1.25rem 0;
    font-size: 0.9rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb a:hover {
    background-color: rgba(229, 62, 62, 0.1);
    color: #c53030;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background-color: #f7fafc;
    position: relative;
    color: #1a202c;
    padding: 2rem 0;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}



.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero h1 {
    color: #1a365d;
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: none;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    margin: 0;
    max-width: 750px;
}

.hero h2 {
    color: #1a202c;
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0;
    text-shadow: none;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero h2::after {
display: none;
    display: none;
}

.hero p {
    font-size: 1.2rem;
    color: #1a202c;
    max-width: 850px;
    margin: 0 auto 3rem;
}

.cta-buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1.5rem;
margin-top: 0;
animation: fadeInUp 1s ease-out 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn.primary {
    background-color: #e53e3e;
    color: white;
}

.btn.primary:hover {
    background-color: #c53030;
}

.btn.secondary {
    background-color: transparent;
    color: #e53e3e;
    border: 2px solid #e53e3e;
}

.btn.secondary:hover {
    background-color: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.btn.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.resource-card .btn {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
    box-shadow: none;
}

.resource-card .btn:hover {
    background-color: #e2e8f0;
    color: #2d3748;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Page Header */
.page-header {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    margin-bottom: 1.5rem;
    animation: slideInDown 0.8s ease-out;
}

.page-header p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 850px;
    margin: 0 auto;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    padding: 2rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}



.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    animation: float 40s ease-in-out infinite;
}

.cta-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin: 0;
}

.cta-section p {
    color: #e2e8f0;
    max-width: 750px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Grid Layouts */
.importance-grid,
.resource-grid,
.use-cases-grid,
.requirement-grid,
.standards-grid,
.healthcare-grid,
.education-grid,
.signage-categories,
.compliance-grid,
.download-grid,
.category-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.importance-grid,
.resource-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.use-cases-grid,
.requirement-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.standards-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.healthcare-grid,
.education-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.signage-categories {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.compliance-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.download-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.importance-item,
.resource-card,
.use-case,
.requirement-item,
.standard-card,
.healthcare-category,
.education-category,
.category-card,
.compliance-item,
.download-item,
.category-preview,
.importance-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 62, 62, 0.1);
    position: relative;
    overflow: hidden;
}

.use-case ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.use-case li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.use-case li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #e53e3e;
    font-size: 0.9rem;
    line-height: 1;
    transform: translateY(2px);
    transition: all 0.3s ease;
}

/* Apply modern arrow bullets to all card types */
.requirement-item ul {
    list-style: none;
    padding-left: 0;
}

.requirement-item li {
    padding-left: 1.5rem;
    position: relative;
}

.requirement-item li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #e53e3e;
    font-size: 0.9rem;
    line-height: 1;
    transform: translateY(2px);
    transition: all 0.3s ease;
}

.standard-card ul {
    list-style: none;
    padding-left: 0;
}

.standard-card li {
    padding-left: 1.5rem;
    position: relative;
}

.standard-card li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #e53e3e;
    font-size: 0.9rem;
    line-height: 1;
    transform: translateY(2px);
    transition: all 0.3s ease;
}

.importance-item ul {
    list-style: none;
    padding-left: 0;
}

.importance-item li {
    padding-left: 1.5rem;
    position: relative;
}

.importance-item li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #e53e3e;
    font-size: 0.9rem;
    line-height: 1;
    transform: translateY(2px);
    transition: all 0.3s ease;
}

.resource-card ul {
    list-style: none;
    padding-left: 0;
}

.resource-card li {
    padding-left: 1.5rem;
    position: relative;
}

.resource-card li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #e53e3e;
    font-size: 0.9rem;
    line-height: 1;
    transform: translateY(2px);
    transition: all 0.3s ease;
}

.healthcare-category ul,
.education-category ul,
.category-card ul,
.compliance-item ul,
.download-item ul,
.category-preview ul,
.importance-card ul {
    list-style: none;
    padding-left: 0;
}

.healthcare-category li,
.education-category li,
.category-card li,
.compliance-item li,
.download-item li,
.category-preview li,
.importance-card li {
    padding-left: 1.5rem;
    position: relative;
}

.healthcare-category li::before,
.education-category li::before,
.category-card li::before,
.compliance-item li::before,
.download-item li::before,
.category-preview li::before,
.importance-card li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #e53e3e;
    font-size: 0.9rem;
    line-height: 1;
    transform: translateY(2px);
    transition: all 0.3s ease;
}

.importance-item::before,
.resource-card::before,
.use-case::before,
.requirement-item::before,
.standard-card::before,
.healthcare-category::before,
.education-category::before,
.category-card::before,
.compliance-item::before,
.download-item::before,
.category-preview::before,
.importance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #796767 0%, #665151 50%, #ff8a80 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.importance-item:hover,
.resource-card:hover,
.use-case:hover,
.requirement-item:hover,
.standard-card:hover,
.healthcare-category:hover,
.education-category:hover,
.category-card:hover,
.compliance-item:hover,
.download-item:hover,
.category-preview:hover,
.importance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border-color: rgba(229, 62, 62, 0.2);
}

.importance-item:hover::before,
.resource-card:hover::before,
.use-case:hover::before,
.requirement-item:hover::before,
.standard-card:hover::before,
.healthcare-category:hover::before,
.education-category:hover::before,
.category-card:hover::before,
.compliance-item:hover::before,
.download-item:hover::before,
.category-preview:hover::before,
.importance-card:hover::before {
    transform: scaleX(1);
}

/* Card Icons Enhancement */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.importance-card:hover .card-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* Download Items */
.download-item {
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.download-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.1) 0%, rgba(245, 101, 101, 0.1) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.download-item:hover .download-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.15) 0%, rgba(245, 101, 101, 0.15) 100%);
}

.download-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: #718096;
    gap: 1rem;
}

.file-info {
    background: linear-gradient(135deg, #e2e8f0 0%, #edf2f7 100%);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid rgba(229, 62, 62, 0.1);
}

.updated {
    font-weight: 600;
    color: #38a169;
    font-size: 0.85rem;
}

/* Color Samples */
.color-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.color-category {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 62, 62, 0.1);
}

.color-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.color-sample {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.color-category:hover .color-sample {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}


.red-bg { 
    background: linear-gradient(135deg, #e53e3e 0%, #f56565 100%);
}
.yellow-bg { 
    background: linear-gradient(135deg, #ecc94b 0%, #f6e05e 100%);
}
.green-bg { 
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
}
.blue-bg { 
    background: linear-gradient(135deg, #3182ce 0%, #4299e1 100%);
}

/* Table of Contents - Ultra Slim Design */
.toc {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin: 0.8rem 0;
    border: 1px solid rgba(229, 62, 62, 0.15);
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.toc * {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.toc h2 {
    margin-bottom: 0.6rem;
    color: #2d3748;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0;
}

.toc ul, .toc ul li, .toc ul li a {
    list-style: none;
    list-style-type: none;
    list-style-image: none;
    margin: 1px;
    padding-left: 9px;
    text-indent: 8px;
}
    text-indent: 0 !important;
}

.toc ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.toc li {
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-type: none;
    position: relative;
}

.toc li::before,
.toc li::after,
.toc li::marker,
.toc li:before,
.toc li:after {
    display: none;
    content: none;
    visibility: hidden;
}

.toc li a {
    color: #141516;
    text-decoration: none;
    padding: 0.3rem 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgb(14 12 12 / 80%);
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    list-style: none;
    outline: none;
    margin: 0;
    line-height: 1.4;
    min-width: fit-content;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

/* Clean TOC hover effects - Simple and functional */
.toc li a:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #ffffff;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(229, 62, 62, 0.3);
    border-color: rgba(229, 62, 62, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toc li a:active {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 15px rgba(229, 62, 62, 0.4);
}

.toc li a:focus,
.toc li a:active {
    outline: none;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.25);
}


/* Content overview section - ultra minimal spacing */
.content-overview {
    margin: 0.5rem 0 !important;
    padding: 0 !important;
}

/* Additional global overrides for TOC area */
.toc, .toc *, .content-overview, .content-overview * {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    list-style-position: outside !important;
}
}

.toc ul li::marker,
.toc ul li:before,
.toc ul li::before {
    content: none !important;
    display: none !important;
}

/* Lists */
ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Enhanced Checklist Styling */
.checklist {
    margin: 2.5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(229, 62, 62, 0.1);
    position: relative;
    overflow: hidden;
}

.checklist::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e53e3e 0%, #f56565 50%, #e53e3e 100%);
    border-radius: 20px 20px 0 0;
}

.checklist h3 {
    color: #1a365d;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.checklist h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #e53e3e, #f56565);
    border-radius: 2px;
}

.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.checklist-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: rgba(229, 62, 62, 0.2);
}

.checklist-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 62, 62, 0.03), transparent);
    transition: left 0.6s ease;
}

.checklist-item:hover::before {
    left: 100%;
}

/* Custom Checkbox Styling */
.checklist-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    margin-right: 1rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    flex-shrink: 0;
}

.checklist-item input[type="checkbox"]:hover {
    border-color: #e53e3e;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.2);
}

.checklist-item input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #e53e3e 0%, #f56565 100%);
    border-color: #e53e3e;
    transform: scale(1.05);
}

.checklist-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.checklist-item label {
    font-weight: 500;
    cursor: pointer;
    color: #2d3748;
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
    transition: all 0.3s ease;
    user-select: none;
}

.checklist-item:hover label {
    color: #1a202c;
}

.checklist-item input[type="checkbox"]:checked + label {
    color: #e53e3e;
    font-weight: 600;
}

/* Progress Indicator */
.checklist-progress {
    margin-bottom: 2rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e53e3e 0%, #f56565 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Checklist Category Separators */
.checklist h3:not(:first-child) {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(229, 62, 62, 0.15);
}

/* Completed state styling */
.checklist-item.completed {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-color: rgba(56, 161, 105, 0.3);
}

.checklist-item.completed:hover {
    border-color: rgba(56, 161, 105, 0.5);
}

/* Add subtle animation for better UX */
.checklist-item {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for checklist items */
.checklist-item:nth-child(1) { animation-delay: 0.1s; }
.checklist-item:nth-child(2) { animation-delay: 0.2s; }
.checklist-item:nth-child(3) { animation-delay: 0.3s; }
.checklist-item:nth-child(4) { animation-delay: 0.4s; }
.checklist-item:nth-child(5) { animation-delay: 0.5s; }
.checklist-item:nth-child(6) { animation-delay: 0.6s; }
.checklist-item:nth-child(7) { animation-delay: 0.7s; }
.checklist-item:nth-child(8) { animation-delay: 0.8s; }
.checklist-item:nth-child(9) { animation-delay: 0.9s; }
.checklist-item:nth-child(10) { animation-delay: 1.0s; }
.checklist-item:nth-child(11) { animation-delay: 1.1s; }
.checklist-item:nth-child(12) { animation-delay: 1.2s; }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #edf2f7;
    font-weight: 600;
    color: #2d3748;
}

tr:hover {
    background-color: #f7fafc;
}

.non-compliant {
    color: #e53e3e;
}

.compliant {
    color: #38a169;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.process-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    background-color: #e53e3e;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

/* Framework Structure */
.framework-structure {
    margin: 2rem 0;
}

.framework-level {
    margin-bottom: 3rem;
}

.regulation-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.regulation-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Penalties Grid */
.penalties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.penalty-category {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0;
}

.penalty-list {
    margin-top: 0;
}

.penalty-item {
    background-color: #f7fafc;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 3px solid #e53e3e;
}

/* NBCC Page Specific Styles */
.importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.importance-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #3182ce;
    text-align: center;
}

.requirement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.requirement-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #e53e3e;
}

.requirement-item h3 {
    color: #e53e3e;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.requirement-item h4 {
    color: #2d3748;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.requirement-item ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.requirement-item li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.standard-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #38a169;
}

.standard-card h3 {
    color: #38a169;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.standard-card h4 {
    color: #2d3748;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.standard-card ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.standard-card li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.standard-card strong {
    color: #2d3748;
    font-weight: 600;
}

/* Industry Impacts */
.industry-impacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.industry-impact-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #38a169;
}

/* Next Steps */
.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid #667eea;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #e53e3e;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background-color: #2d3748;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0 0;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cta-content h2::after {
    display: none;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-content .btn {
    background: #e53e3e;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border: none;
}

.cta-content .btn:hover {
    background: #c53030;
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 4rem 0 1rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e53e3e 0%, #f56565 50%, #e53e3e 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    animation: fadeInUp 0.8s ease-out;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
}

.footer-section p {
    color: #ffffff;
    opacity: 1;
}

footer .footer-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

footer .footer-section ul li::marker {
    display: none;
    content: none;
}

.footer-section .two-column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
}

.industry-standards-section h3 {
    text-align: center;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: block;
    position: relative;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #e53e3e, #f56565);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.footer-cta {
    display: inline-block;
    background: linear-gradient(135deg, #e53e3e 0%, #f56565 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.footer-cta:hover::before {
    left: 100%;
}

.footer-cta:hover {
    background: linear-gradient(135deg, #c53030 0%, #e53e3e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(74, 85, 104, 0.5);
    padding-top: 2rem;
    text-align: center;
    color: #ffffff;
    font-size: 0.9rem;
    opacity: 1;
}

/* Additional Visual Enhancements */

/* Smooth scroll and page transitions */
html {
    scroll-behavior: smooth;
}

/* Section animations */
.page-header,
.importance-grid,
.use-cases-grid,
.resource-grid,
.download-grid,
.standards-grid {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* List styling - use default HTML bullets, customize color */
ul:not(.nav-menu):not(.toc ul):not(.dropdown-menu):not(.toc *):not(.use-case ul):not(.requirement-item ul):not(.standard-card ul):not(.importance-item ul):not(.resource-card ul):not(.healthcare-category ul):not(.education-category ul):not(.category-card ul):not(.compliance-item ul):not(.download-item ul):not(.category-preview ul):not(.importance-card ul) {
    list-style-type: disc;
    padding-left: 1.5rem;
}

ul:not(.nav-menu):not(.toc ul):not(.dropdown-menu):not(.toc *):not(.use-case ul):not(.requirement-item ul):not(.standard-card ul):not(.importance-item ul):not(.resource-card ul):not(.healthcare-category ul):not(.education-category ul):not(.category-card ul):not(.compliance-item ul):not(.download-item ul):not(.category-preview ul):not(.importance-card ul) li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Custom bullet color using marker pseudo-element */
ul:not(.nav-menu):not(.toc ul):not(.dropdown-menu):not(.toc *):not(.use-case ul):not(.requirement-item ul):not(.standard-card ul):not(.importance-item ul):not(.resource-card ul):not(.healthcare-category ul):not(.education-category ul):not(.category-card ul):not(.compliance-item ul):not(.download-item ul):not(.category-preview ul):not(.importance-card ul) li::marker {
    color: #e53e3e;
    font-size: 1.1em;
}

/* Ensure TOC is never affected by general list rules */
.toc ul,
.toc ul li,
.content-overview ul,
.content-overview ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
}

.toc ul li::marker,
.content-overview ul li::marker {
    display: none !important;
    content: none !important;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e53e3e 0%, #f56565 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c53030 0%, #e53e3e 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section .two-column-list {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul li a:hover {
        padding-left: 0;
    }

    .footer-bottom {
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .download-details {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Quick Navigation Mobile Adjustments */
    .toc {
        padding: 0.6rem 0.8rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .toc h2 {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .toc ul {
        gap: 0.3rem !important;
    }
    
    .toc li a {
        padding: 0.6rem 1.3rem !important;
        font-size: 0.78rem !important;
        text-align: center !important;
        box-sizing: border-box !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border: 2px solid rgba(160, 160, 160, 0.8) !important;
    letter-spacing: 0.01em !important;
    width: 100%;
    text-align: center !important;
    }
    
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        text-align: center;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .btn {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .cta-section {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {
    .nav-menu,
    .cta-section,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #e53e3e;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn.secondary {
        border-width: 3px;
    }
    
    .card {
        border-width: 2px;
        border-style: solid;
        border-color: #333;
    }
}
