/* Core Variables - Using Fraktal's official colors */
:root {
    --primary: #004B46;          /* Pine green */
    --primary-dark: #003a37;     /* Darker pine green for hover states */
    --secondary: #FFE600;        /* Positive yellow */
    --accent: #F5AA28;           /* Orange accent */
    --accent-red: #D7552C;       /* Red accent */
    --accent-green: #00CC82;     /* Green accent */
    --dark: #000000;             /* Black */
    --light: #FCFCFC;            /* Online gray light */
    --white: #FFFFFF;            /* White */
    --gray: #f0f0f0;             /* Light gray for sections */
    --text: #333333;             /* Dark text color */
    --text-light: #666666;       /* Secondary text */
    
    /* Function colors based on brand palette */
    --identify: #004B46;         /* Pine green */
    --protect: #00CC82;          /* Green */
    --detect: #F5AA28;           /* Orange */
    --respond: #D7552C;          /* Red */
    --recover: #00a2a5;          /* Teal (derived from Pine green) */
    --govern: #2C3E50;           /* Navy (keeping this for contrast) */
}

/* Import system fonts to match Fraktal's clean aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Account for fixed header height */
}

body {
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header & Navigation */
header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
}

.logo-image {
    height: clamp(1.5rem, 3vw, 2.5rem);
    margin-right: clamp(0.5rem, 1.5vw, 1rem);
    vertical-align: middle;
    filter: brightness(1.2);
}

/* Navigation with hamburger menu for responsive design */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s;
}

.nav-links li a:hover {
    color: var(--secondary);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 3px;
}

/* Hamburger menu animation */
.change .bar1 {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Media query for responsive design */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        z-index: 1000;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px;
        transition: right 0.3s ease-in-out;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1rem 0;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 0.7rem 0;
    }
}

/* Hero Section */
.hero {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem 3rem;
    position: relative;
}

/* Removed decorative background pattern for cleaner Fraktal aesthetic */

.hero-logo {
    margin-bottom: 1rem;
}

.hero-logo-image {
    width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.hero-tagline {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--primary);
    padding: 0.75rem 1.75rem;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.cta-button:hover {
    background-color: var(--accent);
    transform: translateX(3px);
}

#data-status {
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    margin-top: 15px; 
    font-size: 0.9rem; 
    color: var(--white);
    display: inline-block;
    backdrop-filter: blur(5px);
}

/* Assessment Finder Section */
.assessment-finder {
    padding: 3rem 1rem;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background-color: var(--gray);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-group {
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 0;
    font-size: 0.95rem;
    color: var(--text);
    background-color: var(--white);
    transition: all 0.3s ease;
}

.filter-group select:focus, .filter-group input:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: #fafafa;
}

.reset-button {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    align-self: flex-end;
    margin-top: 22px;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.reset-button:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateX(2px);
}

/* Assessment Cards */
.assessment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.assessment-card {
    background-color: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e5e5e5;
}

.assessment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: var(--secondary);
}

.card-header {
    padding: 1.5rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Removed decorative pattern for cleaner look */

.card-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.function-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.function-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    font-weight: 600;
    background-color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-body {
    padding: 1.5rem;
}

.card-section {
    margin-bottom: 1.2rem;
}

.card-section h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.card-section ul {
    padding-left: 1.5rem;
}

.card-section ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.use-cases-list {
    padding-left: 1.5rem;
}

.use-cases-list li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.read-more:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.read-more:hover::after {
    width: 100%;
    background-color: var(--accent);
}

/* Tag colors */
.tag-identify {
    background-color: var(--identify);
}

.tag-protect {
    background-color: var(--protect);
}

.tag-detect {
    background-color: var(--detect);
}

.tag-respond {
    background-color: var(--respond);
}

.tag-recover {
    background-color: var(--recover);
}

.tag-govern {
    background-color: var(--govern);
}

/* Framework Map */
.framework-map {
    padding: 4rem 1rem;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.framework-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray), transparent);
}

/* Relationship Map */
.relationship-map {
    padding: 4rem 1rem;
    background-color: var(--white);
    position: relative;
}

.relationship-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray), transparent);
}

.map-container {
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.map-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray);
}

.control-group {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.control-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.control-group select {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: var(--white);
}

.map-search {
    flex-grow: 1;
    min-width: 200px;
}

.map-search input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.map-zoom-controls {
    display: flex;
    gap: 0.3rem;
}

.map-zoom-controls button {
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    background-color: var(--white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.map-zoom-controls #reset-map-filters {
    width: auto;
    padding: 0 10px;
    font-size: 0.9rem;
    background-color: var(--primary);
    color: var(--white);
    margin-left: 8px;
}

.map-zoom-controls button:hover {
    background-color: var(--gray);
}

.visualization-container {
    padding: 1rem;
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 1rem;
    height: 600px;
}

.map-legend {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    align-self: flex-start;
}

.map-legend h4 {
    margin: 0 0 0.7rem 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}

.map-legend h4:not(:first-child) {
    margin-top: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 3px;
    margin-right: 0.5rem;
    border-radius: 1px;
}

.legend-color.prerequisite {
    background-color: var(--primary);
}

.legend-color.enhancement {
    background-color: var(--protect);
}

.legend-color.progression {
    background-color: var(--detect);
}

.legend-color.controls {
    background-color: var(--respond);
}

.legend-color.resources {
    background-color: var(--recover);
}

.legend-node {
    display: inline-block;
    background-color: var(--primary);
    border-radius: 50%;
    margin-right: 0.5rem;
}

.legend-node.small {
    width: 10px;
    height: 10px;
}

.legend-node.medium {
    width: 15px;
    height: 15px;
}

.legend-node.large {
    width: 20px;
    height: 20px;
}

.relationship-visualization {
    background-color: var(--white);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-style: italic;
    color: var(--text-light);
}

.assessment-detail {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow-y: auto;
    height: 100%;
}

.assessment-detail h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.detail-instruction {
    color: var(--text-light);
    font-style: italic;
}

.relationship-section {
    margin-top: 1.5rem;
}

.relationship-section h4 {
    margin-bottom: 0.7rem;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}

.detail-button {
    margin-top: 1.5rem;
    padding: 0.7rem 1.2rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.detail-button:hover {
    background-color: var(--primary-dark);
}


.relationship-type {
    margin-bottom: 1.5rem;
}

.relationship-type h5 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.related-assessments {
    list-style-type: none;
    padding-left: 0.5rem;
}

.related-assessments li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
    font-size: 0.9rem;
}

.related-assessments li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.relationship-description {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.no-relationships {
    font-style: italic;
    color: var(--text-light);
    padding: 1rem 0;
}

.export-button {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 600;
}

.export-button:hover {
    background-color: #f5d000;
}

/* Contact Modal Styles */
.modal-logo {
    text-align: center;
    margin: 1rem 0;
}

.modal-logo-image {
    height: 80px;
    width: auto;
    filter: brightness(1.2);
}

.benefits-list {
    padding-left: 1.5rem;
}

.benefits-list li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-item {
    margin-bottom: 1rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact-item address {
    font-style: normal;
    line-height: 1.4;
    color: var(--text);
}

.cta-section {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
    border-left: 4px solid var(--secondary);
}

.cta-section h3 {
    margin-bottom: 0.7rem;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.cta-section p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.contact-cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Fullscreen Relationship Map */
.fullscreen-visualization {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 8px 8px 0 0;
}

.fullscreen-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.fullscreen-controls {
    display: flex;
    gap: 0.5rem;
}

.fullscreen-controls button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.fullscreen-controls button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.fullscreen-exit {
    font-size: 1.2rem;
}

.fullscreen-content {
    flex: 1;
    position: relative;
    background-color: var(--light);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* Media queries for relationship map */
@media (max-width: 1200px) {
    .visualization-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
    }

    .map-legend {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 1rem;
    }

    .relationship-visualization {
        grid-column: 1;
        grid-row: 2;
        height: 500px;
        margin-bottom: 1rem;
    }

    .assessment-detail {
        grid-column: 1;
        grid-row: 3;
        height: auto;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .relationship-visualization {
        height: 400px;
    }

    .map-controls {
        flex-direction: column;
    }

    .map-search {
        width: 100%;
    }

    .map-zoom-controls {
        align-self: flex-end;
    }
}

.framework-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.function-row {
    display: flex;
    margin-bottom: 2rem;
}

.function-block {
    flex: 1;
    padding: 1.5rem;
    border-radius: 8px;
    color: var(--white);
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.function-block::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='rgba(255,255,255,0.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    transform: rotate(45deg);
}

.function-block:last-child {
    margin-right: 0;
}

.function-block h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.function-block ul {
    padding-left: 1.5rem;
    list-style-type: none;
}

.function-block ul li {
    margin-bottom: 0.7rem;
    position: relative;
}

.function-block ul li::before {
    content: '→';
    position: absolute;
    left: -1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.function-block ul li a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.function-block ul li a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.function-identify {
    background-color: var(--identify);
}

.function-protect {
    background-color: var(--protect);
}

.function-detect {
    background-color: var(--detect);
}

.function-respond {
    background-color: var(--respond);
}

.function-recover {
    background-color: var(--recover);
}

.function-govern {
    background-color: var(--govern);
}

/* Assessment Quiz */
.assessment-quiz {
    padding: 4rem 1rem;
    background-color: var(--white);
    position: relative;
}

.assessment-quiz::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray), transparent);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.quiz-question {
    margin-bottom: 2.5rem;
}

.quiz-question h3 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.option-card {
    background-color: var(--white);
    padding: 1.2rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.option-card.selected {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,75,70,0.2);
}

.option-card:hover:not(.selected) {
    background-color: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-2px);
}

.quiz-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,75,70,0.2);
}

.quiz-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,75,70,0.3);
}

.quiz-results {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    margin-top: 2rem;
    display: none;
    border-left: 4px solid var(--primary);
}

.results-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-header h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.results-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.result-item {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.result-item h4 {
    color: var(--primary);
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.result-item p {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.result-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.result-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.no-results {
    display: none;
    text-align: center;
    padding: 2rem;
    background-color: var(--light);
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px dashed #ccc;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 800px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-button:hover {
    color: var(--dark);
    background-color: var(--gray);
}

.modal-header {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray);
}

.modal-header h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-section {
    margin-bottom: 2.5rem;
}

.modal-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.modal-section h3::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: var(--secondary);
    margin-right: 10px;
    border-radius: 50%;
}

.modal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-type: disc;
}

.modal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.modal-content .cta-section {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f9ff 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    margin-top: 2rem;
}

.modal-content .cta-section h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-contact-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.modal-contact-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.modal-tag {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--white);
}

/* Quiz Results Improvements */
.rank-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--dark);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: var(--white);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: var(--white);
}

.match-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: var(--gray);
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent));
    transition: width 1s ease-out;
    border-radius: 4px;
}

.score-text {
    font-weight: 600;
    color: var(--primary);
    min-width: 80px;
}

.match-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.reason-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--accent-green);
    color: var(--white);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Highlight for search results */
.highlight {
    background-color: var(--secondary) !important;
    color: var(--dark) !important;
    font-weight: 600;
    border-radius: 2px;
    padding: 0 3px;
    box-shadow: 0 0 3px rgba(255, 230, 0, 0.7);
    position: relative;
    text-decoration: none;
    display: inline-block;
}

/* Pulse animation for search highlights */
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 rgba(255, 230, 0, 0.4); }
    50% { box-shadow: 0 0 8px rgba(255, 230, 0, 0.6); }
    100% { box-shadow: 0 0 0 rgba(255, 230, 0, 0.4); }
}

.assessment-card:hover .highlight {
    animation: highlight-pulse 1.5s infinite;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 2rem 1rem;
    border-top: 4px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-logo {
    margin: 1rem 0;
}

.footer-logo-image {
    width: 80px;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    filter: brightness(1.2);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide the text part of the logo, show only the logo image */
    .logo {
        font-size: 0; /* Hide the text */
    }

    .logo-image {
        height: 30px;
        margin-right: 0; /* Remove margin when text is hidden */
    }

    .header-content {
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
    }

    .function-row {
        flex-direction: column;
    }

    .function-block {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .modal-content {
        margin: 10% 5%;
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .filter-container {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
        margin-bottom: 1rem;
    }

    .reset-button {
        align-self: flex-start;
        width: 100%;
    }
}

/* Feature Cards Section */
.features-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 100%;
    height: 200px;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.preview-content {
    width: 90%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quiz and Database Illustration Styles */
.quiz-illustration,
.database-illustration {
    width: 100%;
    height: 100%;
    display: block;
}

/* Map Preview Styles */
.mini-map {
    width: 100%;
    height: 100%;
}

/* NIST Preview Styles */
.mini-nist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.mini-function {
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--white);
}

.mini-function.identify {
    background: #4A90E2;
}

.mini-function.protect {
    background: #50C878;
}

.mini-function.detect {
    background: #FFB84D;
}

.mini-function.respond {
    background: #FF6B6B;
}

.mini-function.recover {
    background: #9B59B6;
}

.mini-function.govern {
    background: #2C3E50;
}


.feature-content {
    padding: 1.5rem;
}

.feature-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-content p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.feature-link:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* FAQ Section Styles */
.faq-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

.faq-intro {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-intro p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.faq-intro ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.faq-intro li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-item h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-item ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.faq-item li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    border: 2px solid var(--primary);
}

.faq-cta p {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Responsive for tablets */
@media (max-width: 992px) {
    .features-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-image {
        height: 180px;
    }
    
    .feature-content h3 {
        font-size: 1.2rem;
    }
    
    .feature-content p {
        font-size: 0.95rem;
    }
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
    
    .faq-intro {
        padding: 1.5rem;
    }
    
    /* Feature Cards - maintain 2x2 but smaller */
    .features-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .feature-image {
        height: 150px;
    }
    
    .feature-content {
        padding: 1rem;
    }
    
    .feature-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-content p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .mini-function {
        font-size: 10px;
        padding: 0.6rem;
    }
    
    .mini-option {
        font-size: 10px;
        padding: 0.3rem 0.6rem;
    }
}

/* Very small mobile */
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-image {
        height: 180px;
    }
    
    .feature-content {
        padding: 1.5rem;
    }
    
    .feature-content h3 {
        font-size: 1.2rem;
    }
    
    .feature-content p {
        font-size: 1rem;
    }
}