/* General Styling */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --primary: 5 100% 69% ; /* Nippa Orange 8 86% 65% */
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --border: 214.3 31.8% 91.4%;
    --radius: 0.5rem;
    --success: 142.1 76.2% 36.3%;
    --warning: 38.3 95.8% 53.1%;
    --danger: 0 84.2% 60.2%;
}

@font-face {
    font-family: 'Korto Bold';
    src: url('/font/Korto-Bold.woff2');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
}

h1, h2 {
    font-family: "Korto Bold";
}

p.descriptive-text {
    padding-bottom: 1rem;
}

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

.min-h-screen {
    min-height: 100vh;
}

a {
  text-decoration: none;
  font-weight: 600;
  color: hsl(var(--primary));
}

a:hover {
    text-decoration: underline;
}

.section-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 48rem;
    margin: -1rem auto 2rem;
    text-align: center;
}

/* Navbar */
.navbar {
    background-color: hsl(var(--primary));
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.nav-logo img {
    height: 2.5rem;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nav-cta {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Banner styling */
.banner {
  box-shadow: 0 1px 5px hsl(var(--primary));
  z-index: 1;
  text-align: center;
  padding: 0.5rem 1rem;
  margin-bottom: 5px; /* lets the shadow be seen */
}

.banner p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.banner a {
  text-decoration: none;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.banner a:hover {
  color: hsl(var(--primary));
}

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

.cursor {
    display: inline-block;
    background-color: currentColor;
    width: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Header */
.header {
    background-color: hsl(var(--background));
    color: hsl(var(--muted-foreground));
    padding: 4rem 2rem;
    text-align: center;
}

.header-slim {
    padding: 2.5rem 2rem;
}

.header h1 {
    font-size: 3rem;
    font-weight: semibold;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-span {
    margin-bottom: 0.1rem;
}

.header img {
    height: 4rem;
}

.header p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Image Carousel */
.hero-image {
    position: relative;
    height: 400px; /* Fixed height */
    overflow: hidden;
    margin-top: 2rem;
    border-radius: 12px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.hero-image .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

/* Carousel indicators (optional) */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: rgba(255, 255, 255, 0.9);
}


/* CTA Button */
.cta-button-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.cta-button-container.align-left {
    justify-content: left;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: hsl(var(--primary) / 0.8);
    transform: translateY(-1px);
    text-decoration: none;
}

.cta-button.outlined-button {
    background-color: hsl(var(--primary-foreground));
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary));
}
.cta-button.invert-button {
    background-color: hsl(var(--primary-foreground));
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary));
}

.cta-button.invert-button:hover {
    background-color: hsl(var(--primary-foreground));
    color: hsl(var(--primary));
}

.cta-button.invert-outlined-button {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: 2px solid hsl(var(--primary-foreground));
}

.button-center {
    text-align: center;
    margin-top: 2rem;
}

/* Hero Image */
.hero-image {
    padding: 0.5rem 1rem 2rem;
    text-align: center;
}

.hero-image-homepage {
    padding-left: 0rem;
    padding-right: 0rem;
}

.hero-image img {
    max-width: 50rem;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 4rem 1rem;
    background-color: hsl(var(--primary));
}

.features h2 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: hsl(var(--primary-foreground));
}

.features p {
    color: hsl(var(--primary-foreground));
}

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

.feature-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 2);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 2.2rem;
    color: hsl(var(--primary));
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: hsl(var(--muted-foreground));
}

/* Preview Card */
.preview-card {
    background: hsl(var(--muted) / 0.5);
    border-radius: calc(var(--radius) * 2);
    padding: 2rem;
    text-align: center;
    max-width: 48rem;
    margin: 2rem auto 0;
    border: 1px solid hsl(var(--border));
}
.preview-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.preview-card p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.research-image {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) * 1.5);
    margin-bottom: 1rem;
}

/* How It Works Section */
.how-it-works, .cta-section, .faq {
    padding: 4rem 1rem;
}

.how-it-works {
    background-color: hsl(var(--muted) / 0.5);
}

.how-it-works h2, .cta-section h2, .faq h2 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step p {
    color: hsl(var(--muted-foreground));
}


.council-research-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 2rem;
}

.council-research-text {
    flex: 1 1 0;
}

.council-research-text h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.council-research-image-wrapper {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}

.council-research-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* CTA Section */
.cta-section {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    text-align: center;
}

.cta-section p {
    font-size: 1.125rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.interest-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 500px;
}

.form-row input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    font-size: 1rem;
}

.form-row button {
    padding: 0.75rem 2rem;
}

.form-disclaimer {
    font-size: 0.85rem !important;
    color: #ccc;
    text-align: center;
}


/* FAQ Section */
.faq {
    background-color: hsl(var(--muted) / 0.5);
}
.faq-list {
    max-width: 48rem;
    margin: 2rem auto 0;
}
.faq-item {
    border-bottom: 1px solid hsl(var(--border));
}
.faq-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.faq-button:hover {
    color: hsl(var(--primary));
}
.chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-content {
    padding-bottom: 1rem;
    color: hsl(var(--muted-foreground));
    display: none;
    line-height: 1.7;
}
.faq-item.active .faq-content {
    display: block;
}
.faq-item.active .chevron {
    transform: rotate(180deg);
}
.contact-info {
    padding: 2rem 1rem;
    text-align: center;
}
.contact-info p {
    color: hsl(var(--muted-foreground));
}
.contact-info a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
}
.contact-info a:hover {
    text-decoration: underline;
}

.interest-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.interest-form input[type="email"] {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    width: 100%;
    max-width: 500px;
    font-size: 1rem;
}

.interest-form button {
    width: auto;
}


/* Research Page */
.research-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.research-container h2 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
}


/* Table Layout */
.research-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* fixed layout for equal widths */
}

.research-table th, .research-table td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #ddd;
    overflow: hidden;
    white-space: break-word;
    text-overflow: ellipsis;
}

/* Rank column */
.research-table th:first-child,
.research-table td:first-child {
    width: 5%;
    font-weight: 600;
}

/* Council column wider */
.research-table th:nth-child(2),
.research-table td:nth-child(2) {
    width: 30%;  /* council names get more space */
    text-align: left;
    padding-left: 1rem;
}

/* Other data columns */
.research-table th:nth-child(n+3),
.research-table td:nth-child(n+3) {
    width: 12.4%; /* (100 - 8 - 30) / 5 = 12.4% */
}

/* Icon styling */
.icon-status i {
    font-size: 1.2rem;
    vertical-align: middle;
    color: currentColor;
}

.status-0 { color: #f36d59; }     /* Poor */
.status-1 { color: #f39c12; }  /* Fair */
.status-2 { color: #27ae60; }  /* Good */
.status-3 { color: #3498db; }  /* Excellent */


/* Total column */
.total-score {
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    padding: 0.3rem 0;
}

/* Total background colors matching icon levels */
.total-status-0 { background: #f36d59;}
.total-status-1 { background: #f39c12; }
.total-status-2 { background: #27ae60; }
.total-status-3 { background: #3498db; }

/* Legend */
.legend { 
    margin-top: 1rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.legend-item { 
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Add this to your existing mobile media query section */
@media (max-width: 768px) {
    /* Your existing mobile styles... */
    
    .legend {
        flex-direction: column-reverse;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
        padding: 0 1rem; /* Add some horizontal padding */
    }
    
    .legend-item {
        display: flex;
        align-items: center;
        gap: 0.75rem; /* Slightly larger gap for vertical layout */
        justify-content: center;
        width: 100%; /* Take full width */
    }
    
    .legend-item.status-0, .legend-item.status-1, .legend-item.status-2, .legend-item.status-3 {
        font-size: 0.9rem !important;
    }
}

.icon-status {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
    position: relative;
}

.icon-status::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.2rem;
    height: 1.2rem;
    background-color: white;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.icon-status.status-3 {
    background-color: hsl(var(--success) / 0.2);
}

.icon-status.status-3::after {
    background-color: hsl(var(--success));
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.icon-status.status-2 {
    background-color: hsl(var(--warning) / 0.2);
}

.icon-status.status-2::after {
    background-color: hsl(var(--warning));
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

.icon-status.status-0 {
    background-color: hsl(var(--danger) / 0.2);
}

.icon-status.status-0::after {
    background-color: hsl(var(--danger));
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

.research-table td .icon-status {
    margin: 0 auto;
}

.status-0, .status-1, .status-2, .status-3, .status-4 {
    font-size: 1.1rem !important;
}

.legend {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

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

/* Loading state */
.loading {
    text-align: center;
    padding: 2rem;
    color: hsl(var(--muted-foreground));
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid hsl(var(--primary));
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* Header text responsive behavior */
.header-text {
    display: inline-block;
}

/* Desktop: show full text by default */
.header-text::after {
    content: attr(data-full);
}

/* Mobile: show abbreviated text with tooltip */
@media screen and (max-width: 768px) {
    .header-text {
        position: relative;
        cursor: help;
        border-bottom: 1px dotted #666;
    }

    .header-text::after {
        content: attr(data-abbrev);
    }

   
    /* Ensure table header has overflow visible */
    .research-table th {
        overflow: visible;
        position: relative;
    }
}


 /* Tooltip styling */
.tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #666;
    display: inline-block;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: tooltipFade 0.2s ease-in;
}

.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 122%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}

@keyframes tooltipFade {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}


/* Ensure table is hidden initially */
.research-table.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
        color: hsl(var(--primary));
    }
        

    .header h1 {
        font-size: 2.2rem;
    }
    .header p {
        font-size: 1.1rem;
    }
    
    .cta-button-container {
        flex-direction: column;
        gap: 1rem; /* vertical gap between buttons */
    }

    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-row input[type="email"],
    .form-row button {
        width: 100%;
    }

    .research-table th,
    .research-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
   
    .research-table th {
        font-size: 0.75rem;
    }

    .research-table {
        font-size: 0.9em;
        width: 100%;
    }
    
    .research-table td.council-cell {
        white-space: normal;
        word-wrap: break-word;
        hyphens: auto;
        min-width: 80px;
        max-width: 120px;
        line-height: 1.2;
        padding: 8px 4px;
    }
    
    .research-table td {
        vertical-align: middle;
        padding: 8px 4px;
        height: inherit;
    }

    .research-table tbody {
        display: table-row-group;
    }
    
    .research-table tbody tr {
        display: table-row;
        height: auto;
    }
    
    .research-table tbody td {
        display: table-cell;
        vertical-align: middle;
        box-sizing: border-box;
    }


    .tooltip {
        border-bottom: none; /* Remove dotted line on mobile */
    }

    /* Show full text on mobile tap instead of tooltip */
    .tooltip:active::after {
        content: attr(data-tooltip);
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #333;
        color: white;
        padding: 15px 20px;
        border-radius: 8px;
        font-size: 16px;
        z-index: 1001;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        max-width: 250px;
        text-align: center;
    }
    
}

@media (max-width: 1024px) {
    .council-research-container {
        flex-direction: column;
    }

    .council-research-image-wrapper {
        order: 1;
    }

    .council-research-text {
        order: 2;
    }
}

/* Medium screens: allow header text to wrap */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .research-table th {
        white-space: normal; /* Allow text to wrap */
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
        padding: 12px 6px; /* Slightly more vertical padding */
        vertical-align: top;
    }
    
    .research-table th .header-text::after {
        white-space: normal; /* Allow the full header text to wrap */
        word-wrap: break-word;
        hyphens: auto;
        display: inline-block;
        line-height: 1.3;
    }
    
    /* Adjust column widths for medium screens */
    .research-table th:nth-child(n+3),
    .research-table td:nth-child(n+3) {
        width: 11%; /* Slightly narrower to accommodate wrapping */
    }
}

@media (max-width: 420px) {
    .nav-links {
        display: none; /* Simple responsive solution, could be a burger menu */
    }

      .banner p {
    white-space: normal;
    display: block;             /* easier for wrapping */
    max-width: 100%;            /* let it fill container */
  }
}

@media (min-width: 768px) {
    .header h1 {
        flex-direction: row;
        font-size: 3rem;
        gap: 0.75rem;
    }
}