:root {
    /* Primary Color Palette */
    --color-primary-dark: #183a37; /* Dark Teal */
    --color-primary-medium: #4f5d2f; /* Forest Green */
    --color-primary-light: #6a7f6c; /* Light Green */
    --color-primary-accent: #88474739; /* Reddish Brown (used for hover) */

    /* Secondary Color Palette */
    --color-secondary-dark: #4b2e39; /* Dark Brown */
    --color-secondary-medium: #6a4053; /* Plum */
    --color-secondary-light: #ab947e; /* Tan */

    /* Neutral/Background Colors */
    --color-background-main: #F8F4F2; /* Creamy White */
    --color-background-light: #e6e0e5; /* Light Lavender-Gray for gradients */
    --color-background-lighter: #e9dfd8; /* Lighter Cream for form input */
    --color-border-subtle: rgba(171, 148, 126, 0.3); /* Transparent Tan */
    --color-border-lighter: rgba(171, 148, 126, 0.2); /* Even lighter transparent Tan */
    --color-border-lightest: rgba(171, 148, 126, 0.1); /* Very light transparent Tan */
    --color-text-dark: #4b2e39; /* Dark Brown Text */
    --color-text-light: #F8F4F2; /* Creamy White Text */
    --color-text-subdued: #555; /* Medium Gray Text */
    --color-text-subtle: #888; /* Light Gray Text */
    --color-shadow: rgba(0,0,0,0.1);
    --color-shadow-subtle: rgba(0,0,0,0.05);

    /* Header Background Colors */
    --color-header-bg-start: #aabdbb; /* Header Gradient Start */
    --color-header-bg-end: rgba(248, 244, 242, 0); /* Header Gradient End (transparent) */
    --color-header-pattern: rgba(171, 148, 126, 0.4); /* Header Pattern Dots */

    /* Footer Background Colors */
    --color-footer-bg-start: transparent;
    --color-footer-bg-end: rgba(125, 106, 115, 1); /* Dark Plum */
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.2;
    color: #4b2e39;
    background-color: #F8F4F2;
    background: linear-gradient(162deg, rgba(248, 244, 242, 1) 33%, rgba(230, 220, 225, 1) 97%);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
}

/* Header with animated background */
/*.header {
    width: 100%;
    background: linear-gradient(180deg, rgba(170, 189, 186, 1) 0%, rgba(248, 244, 242, 0) 100%);
    color: #183a37;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image:
        radial-gradient(circle at 12px 12px, rgba(171, 148, 126, 0.4) 2px, transparent 2px);
    background-size: 30px 30px;
    animation: moveBackground 140s linear infinite;
    z-index: 1;
}

@keyframes moveBackground {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}*/

/* Top container to hold both header and nav */
.top-container {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(170, 189, 186, 1) 0%, rgba(248, 244, 242, 0) 100%);
    position: relative;
    min-height: 80px;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.2;
    color: #4b2e39;
    background-color: #F8F4F2;
    background: linear-gradient(162deg, rgba(248, 244, 242, 1) 33%, rgba(230, 220, 225, 1) 97%);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
}

.top-container {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(170, 189, 186, 1) 0%, rgba(248, 244, 242, 0) 100%);
    position: relative;
    min-height: 80px;
}

.top-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 100%;
    background-image:
        radial-gradient(circle at 12px 12px, rgba(126, 171, 130, 0.4) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
    width: 100%;
}
/*@keyframes moveBackground {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}*/

        /* Header styles */
.header {
    position: absolute;
    left: 20px;
    z-index: 20;
}

.header h1 {
    font-size: 3rem;
    font-family: 'Times New Roman', serif;
    letter-spacing: -0.15em;
    color: #183a37;
    margin: 0;
}

.header a {
    color: inherit;
    text-decoration: none;
}

.header a:hover,
.header a:active {
    color: #4f5d2f;
    text-decoration: none;
}

/* Navigation styles - modified */
.nav {
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.nav a {
    color: #4b2e39;
    font-size: 1em;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ab947e;
    transition: background-color 0.3s ease;
}

.nav a:hover {
    background-color: #ab947e;
}

/* Mobile styles */
@media (max-width: 768px) {
    .top-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        min-height: auto;
    }
    
    .header {
        position: relative;
        left: 0;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
    }
    
    .nav-container {
        gap: 15px;
        justify-content: center;
    }
    
    .nav a {
        font-size: 0.9em;
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .top-animation {
        width: 100%;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .nav-container {
        gap: 10px;
    }
    
    .nav a {
        font-size: 0.85em;
        padding: 6px 10px;
    }
}

/* Main content */
.main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.left-column {
    flex: 2;
    min-width: 300px;
}

.right-column {
    flex: 1;
    min-width: 280px;
}

/* Articles section */
.date-section {
    margin-bottom: 30px;
    border-radius: 0;
    padding: 20px 0;
    border-bottom: 1px solid rgba(171, 148, 126, 0.3);
}

.date-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: #183a37;
    margin-bottom: 15px;
    padding-bottom: 5px;
    text-decoration: underline #ab947e;
    text-underline-offset: 0.2em;
}

.article {
    margin-bottom: 15px;
}

.article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article-title {
    color: #183a37;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.article-title:hover {
    background-color: #88474739;
    /* This rule from file #1 is kept, as file #2 had a different hover color. You might want to choose one or combine them. */
    /* If you prefer the color from file #2 (rgb(96, 111, 59)), simply uncomment the line below and remove the background-color line above: */
    /* color:rgb(96, 111, 59); */
}

.article-source {
    font-style: italic;
    font-size: 0.9rem;
    padding-left: 30px;
}
.about p,
.about h2,
.about h3,
.about h4 {
    line-height: 1.8;
    margin-top: 1em;
    text-indent: 1.5em;
}
/* Right column sections */
.sidebar-section {
    background: #F8F4F2;
    border-radius: 0;
    padding: 20px 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(171, 148, 126, 0.3);
}

.brown {
    color: #ab947e;
}
.brownline {
    border-top: 1px solid #ab947e;
    width: 75%;
    margin: 20px auto;
}
.tta {
    font-family:'Times New Roman';color:#183a37;letter-spacing:-0.09em;
}
.explainer {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 0.8em;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #183a37;
    margin-bottom: 15px;
    display: flex;
    padding-bottom: 5px;
    justify-content: space-between;
    align-items: baseline;
}

.last-updated-info {
    font-size: 0.8rem;
    font-weight: normal;
    color: #6a7f6c;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(171, 148, 126, 0.2);
}

.ranking-item:last-child {
    border-bottom: none;
}

/* Styling for the rank number */
.ranking-rank {
    font-weight: bold;
    color: #4b2e39;
    font-size: 1.1em;
    margin-right: 8px;
    min-width: 25px;
    text-align: right;
}

.ranking-name {
    font-weight: 500;
    color: #4b2e39;
    flex-grow: 1;
    margin-right: 10px;
}

/* Score Bar Styling */
.ranking-score-bar-wrapper {
    display: flex;
    align-items: center;
    width: 120px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    height: 18px;
    position: relative;
}

.ranking-score-bar {
    background: #4f5d2f;
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease-out;
    position: absolute;
    left: 0;
    top: 0;
}

.ranking-score-value {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #F8F4F2;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
    z-index: 1;
}


.table-link {
    color: inherit;
    text-decoration: none;
}
.table-link:hover {
    background-color: #88474739;
}
.view-full-ranking {
    display: inline-block;
    margin-top: 15px;
    color: #183a37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-full-ranking:hover {
    color: #4f5d2f;
}

/* Newsletter form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input {
    padding: 12px;
    border: 2px solid #ab947e;
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(233, 223, 216, 0.8);
    color: #4b2e39;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #183a37;
    background: #F8F4F2;
}

.form-button {
    background: #4f5d2f;
    color: #F8F4F2;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background: #183a37;
}

/* Footer */
.footer {
    width: 100%;
    background: linear-gradient(180deg, transparent, rgba(125, 106, 115, 1));
    color: #F8F4F2;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-link {
    color: #2c3e50;
}
.footer-link:hover {
    color: #ab947e;
    background-color: #2c3e50;
    text-decoration: underline;
}

/* New Reports Sidebar Section */
.total-articles-summary {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #4b2e39;
}

.total-articles-count {
    font-size: 2.2rem;
    font-weight: bold;
    color: #183a37;
    display: block;
    margin-bottom: 5px;
}

.daily-articles-chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    border-radius: 5px;
    padding: 10px 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
    position: relative;
    gap: 2px;
}

.chart-column {
    flex-grow: 1;
    min-width: 8px;
    max-width: 30px;
    background-color: #4b2e39;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    transition: background-color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.chart-column:hover {
    background-color: #6a4053;
}

.column-date-label {
    position: absolute;
    bottom: -18px;
    font-size: 0.7em;
    color: #555;
    white-space: nowrap;
    transform: rotate(45deg);
    transform-origin: top left;
    left: 0;
    line-height: 1;
}

/* Think Tank Profile Specific Styles */
.tt-header {
    background: #F8F4F2;
    border: 1px solid rgba(171, 148, 126, 0.3);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
}

.tt-basic-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tt-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 4px;
}

.tt-info {
    flex: 1;
}

.tt-name {
    font-size: 1.8rem;
    color: #183a37;
    margin-bottom: 8px;
    font-weight: bold;
}

.tt-location {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    color: #4b2e39;
    font-size: 1rem;
}

.location-text {
    font-weight: 500;
}

.founded-year {
    color: #6a7f6c;
}

.tt-website {
    display: inline-block;
    background: #4f5d2f;
    color: #F8F4F2;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.tt-website:hover {
    background: #183a37;
}
/* Additional CSS for TTA Score Section */
.tt-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 8px;
}

.tt-details {
    flex: 1;
    min-width: 0;
}

.tt-detail-item {
    margin-bottom: 6px;
    line-height: 1.4;
}

.flag-icon {
    width: 16px;
    height: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

/*.tt-score-section {
    flex-shrink: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(171, 148, 126, 0.4);
    border-radius: 8px;
    padding: 15px;
}

.tta-total-score {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(171, 148, 126, 0.3);
}

.tta-score-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #4f5d2f;
    line-height: 1;
}

.tta-score-label {
    font-size: 0.9rem;
    color: #4b2e39;
    font-weight: 500;
    margin-top: 4px;
}

.tta-breakdown {
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.tta-metric-group {
    flex: 1;
    margin-bottom: 0;
}

.tta-metric-title {
    font-size: 0.95rem;
    color: #183a37;
    margin: 0 0 8px 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(171, 148, 126, 0.2);
    padding-bottom: 3px;
}

.tta-metric-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}

.tta-metric-name {
    font-size: 0.85rem;
    color: #4b2e39;
    min-width: 90px;
    flex-shrink: 0;
}

.tta-score-bar-wrapper {
    display: flex;
    align-items: center;
    width: 100px;
    background-color: #e8e4e1;
    border-radius: 4px;
    overflow: hidden;
    height: 16px;
    position: relative;
    flex-grow: 1;
}

.tta-score-bar {
    background: #4f5d2f;
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
    position: absolute;
    left: 0;
    top: 0;
}

.tta-score-value {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #4b2e39;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.tta-updated {
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(171, 148, 126, 0.2);
}*/

/* Responsive adjustments */
/*@media (max-width: 768px) {
    .tt-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .tt-score-section {
        width: 100%;
    }
    
    .tta-breakdown {
        flex-direction: column;
        gap: 12px;
    }
}*/

.view-further {
    display: inline-block;
    margin-top: 15px;
    color: #183a37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-further:hover {
    background-color: #88474739;
}

.explainer a {
    color: inherit;
    text-decoration: underline;
}
.explainer a:hover {
    color: inherit;
    background-color: #88474739;
}

/* Chart Sections */
.chart-section {
    background: #F8F4F2;
    border: 1px solid rgba(171, 148, 126, 0.3);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0;
}

.section-title {
    font-size: 1.2rem;
    color: #183a37;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 2px solid #ab947e;
    padding-bottom: 8px;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 15px;
}

/* Publications */
.publications-section {
    background: #F8F4F2;
    border: 1px solid rgba(171, 148, 126, 0.3);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.publication-item {
    border-bottom: 1px solid rgba(171, 148, 126, 0.2);
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.publication-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.publication-details {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.pub-date {
    color: #6a7f6c;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 80px;
}

.pub-title {
    color: #183a37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    flex: 1;
}

.pub-title:hover {
    background-color: #88474739;
}

.pub-source {
    color: #ab947e;
    font-style: italic;
    font-size: 0.9rem;
    padding-left: 30px;
}

.no-data {
    color: #6a7f6c;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Sidebar Rankings */
.metrics-subsection {
    margin-bottom: 20px;
}

.subsection-title {
    font-size: 1rem;
    color: #183a37;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(171, 148, 126, 0.3);
    padding-bottom: 5px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(171, 148, 126, 0.1);
}

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

.metric-name {
    font-weight: 500;
    color: #4b2e39;
    font-size: 0.9rem;
}

.metric-value {
    font-weight: bold;
    color: #183a37;
    font-size: 0.9rem;
}

.ranking-score {
    background: #4f5d2f;
    color: #F8F4F2;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

/* Responsive adjustments */
/* Mobile responsiveness */
        @media (max-width: 768px) {


    .main {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        min-width: 100%;
    }

    .tt-basic-info {
        flex-direction: column;
        text-align: center;
    }

    .tt-name {
        font-size: 1.8rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-container {
        height: 300px;
    }
}

@media (max-width: 480px) {

    .date-section,
    .sidebar-section {
        padding: 15px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .tt-location {
        flex-direction: column;
        gap: 5px;
    }
}
/*------------------------------------*\
  #Ranking Table (ranking.php specific)
\*------------------------------------*/
/* Ranking Table Styles */
.ranking-table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: #F8F4F2;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    border: 1px solid #ab947e;
}

/* Header Styles */
.ranking-table thead {
    background: linear-gradient(135deg, #183a37 0%, #4f5d2f 100%);
    color: #F8F4F2;
}

.header-row-1 th,
.header-row-2 th {
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    border: 1px solid rgba(171, 148, 126, 0.3);
    font-size: 0.9rem;
}

.rank-header,
.thinktank-header {
    min-width: 80px;
}

.total-score-header {
    font-weight: 900;
    font-size: 1rem;
    background: linear-gradient(135deg, #4f5d2f 0%, #183a37 100%);
    min-width: 100px;
}

.category-header {
    background: linear-gradient(135deg, #4b2e39 0%, #6a4053 100%);
    font-size: 0.95rem;
    padding: 8px;
}

.sub-header {
    background: linear-gradient(135deg, #6a4053 0%, #4b2e39 100%);
    font-size: 0.85rem;
    padding: 8px 6px;
    position: relative;
}

/* Tooltip Styles */
.tooltip-trigger {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: rgba(248, 244, 242, 0.8);
    color: #4b2e39;
    border-radius: 50%;
    text-align: center;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 4px;
    cursor: help;
    line-height: 16px;
    transition: all 0.3s ease;
}

.tooltip-trigger:hover {
    background: #F8F4F2;
    transform: scale(1.1);
}

/* Body Styles */
.ranking-table tbody tr {
    transition: background-color 0.3s ease;
}

.ranking-table tbody tr:nth-child(odd) {
    background: rgba(248, 244, 242, 0.7);
}

.ranking-table tbody tr:nth-child(even) {
    background: rgba(233, 223, 216, 0.5);
}

/* Grayed out styles for non-indexed think tanks */
.ranking-table tbody tr.non-indexed {
    opacity: 0.5;
    background: rgba(200, 200, 200, 0.3) !important;
}

.ranking-table tbody tr.non-indexed td {
    color: #888 !important;
}

.ranking-table tbody tr.non-indexed .thinktank-icon {
    /*filter: grayscale(100%);*/
    opacity: 0.9;
}

.ranking-table tbody tr.non-indexed img {
    /*filter: grayscale(100%);*/
    opacity: 0.9;
}

/*.ranking-table tbody tr:hover {
    background: rgba(171, 148, 126, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}*/

/* Cell Styles */
.ranking-table td {
    padding: 10px 8px;
    border: 1px solid rgba(171, 148, 126, 0.2);
    text-align: center;
    font-size: 0.9rem;
}

.rank-cell {
    font-weight: bold;
    color: #183a37;
    font-size: 1rem;
    background: rgba(24, 58, 55, 0.05);
}

.thinktank-cell {
    font-weight: 500;
    color: #4b2e39;
    min-width: 200px;
    text-align: left !important;
}

.thinktank-icon {
    margin-right: 8px;
    vertical-align: middle;
}

.total-score-cell {
    font-weight: bold;
    font-size: 1.1rem;
    color: #183a37;
    background: rgba(79, 93, 47, 0.1);
}

.score-cell {
    color: #4b2e39;
    font-weight: 500;
    text-align: right !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ranking-table-container {
        margin: 10px -20px;
        border-radius: 0;
    }
    
    .ranking-table {
        font-size: 0.8rem;
    }
    
    .header-row-1 th,
    .header-row-2 th {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .ranking-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
    
    .thinktank-cell {
        min-width: 150px;
    }
    
    .tooltip-trigger {
        width: 14px;
        height: 14px;
        font-size: 0.6rem;
        line-height: 14px;
    }
}

@media (max-width: 480px) {
    .ranking-table {
        font-size: 0.7rem;
    }
    
    .header-row-1 th,
    .header-row-2 th {
        padding: 6px 2px;
        font-size: 0.7rem;
    }
    
    .ranking-table td {
        padding: 6px 2px;
    }
    
    .thinktank-cell {
        min-width: 120px;
    }
}

/*------------------------------------*\
  #Think Tank Profile (thinktank.php specific)
\*------------------------------------*/
.tt-header { /* Uses .section-block for basic styling */
    padding: 20px;
    margin-bottom: 20px;
}

.tt-basic-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tt-info {
    flex: 1;
}

.tt-name {
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    font-weight: bold;
}

.tt-location {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    color: var(--color-text-dark);
    font-size: 1rem;
}

.location-text {
    font-weight: 500;
}

.founded-year {
    color: var(--color-primary-light);
}

.tt-website {
    display: inline-block;
    background: var(--color-primary-medium);
    color: var(--color-text-light);
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
}

.tt-website:hover {
    background: var(--color-primary-dark);
}

.chart-section { /* Uses .section-block for basic styling */
    padding: 20px;
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 15px;
}

.publications-section { /* Uses .section-block for basic styling */
    padding: 20px;
    margin-bottom: 20px;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.publication-item {
    border-bottom: 1px solid var(--color-border-lighter);
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.publication-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.publication-details {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.pub-date {
    color: var(--color-primary-light);
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 80px;
}

.pub-title {
    color: var(--color-primary-dark);
    font-weight: 600;
    flex: 1;
}

.pub-title:hover {
    background-color: var(--color-primary-accent);
}

.pub-source {
    color: var(--color-secondary-light);
    font-style: italic;
    font-size: 0.9rem;
    padding-left: 30px;
}

.no-data {
    color: var(--color-primary-light);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Sidebar Rankings within Think Tank Profile */
.metrics-subsection {
    margin-bottom: 20px;
}

.subsection-title {
    font-size: 1rem;
    color: var(--color-primary-dark);
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 5px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border-lightest);
}

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

.metric-name {
    font-weight: 500;
    color: var(--color-text-dark);
    font-size: 0.9rem;
}

.metric-value {
    font-weight: bold;
    color: var(--color-primary-dark);
    font-size: 0.9rem;
}

.ranking-score {
    background: var(--color-primary-medium);
    color: var(--color-text-light);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

/*------------------------------------*\
  #Footer
\*------------------------------------*/
.footer {
    width: 100%;
    background: linear-gradient(180deg, var(--color-footer-bg-start), var(--color-footer-bg-end));
    color: var(--color-text-light);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/*------------------------------------*\
  #Responsive Design
\*------------------------------------*/
@media (max-width: 768px) {

    .left-column,
    .right-column {
        min-width: 100%;
    }

    .ranking-table-container {
        margin: 10px -20px; /* Adjust for full width on smaller screens */
        border-radius: 0;
    }

    .ranking-table {
        font-size: 0.8rem;
    }

    .header-row-1 th,
    .header-row-2 th {
        padding: 8px 4px;
        font-size: 0.75rem;
    }

    .ranking-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }

    .thinktank-cell {
        min-width: 150px;
    }

    .tooltip-trigger {
        width: 14px;
        height: 14px;
        font-size: 0.6rem;
        line-height: 14px;
    }

    .tt-basic-info {
        flex-direction: column;
        text-align: center;
    }

    .tt-name {
        font-size: 1.8rem;
    }

    /* .metrics-grid is not in current CSS, removed from media query. */
    .chart-container {
        height: 300px; /* Keep consistent or adjust if needed */
    }
}

@media (max-width: 480px) {

    .section-block { /* Apply to sections for consistent padding */
        padding: 15px;
    }

    .ranking-table {
        font-size: 0.7rem;
    }

    .header-row-1 th,
    .header-row-2 th {
        padding: 6px 2px;
        font-size: 0.7rem;
    }

    .ranking-table td {
        padding: 6px 2px;
    }

    .thinktank-cell {
        min-width: 120px;
    }

    /* .metrics-grid not in current CSS, removed from media query. */
    .tt-location {
        flex-direction: column;
        gap: 5px;
    }
}

/* =========================
ARCHIVE
 ========================== */
.year-section {
    margin-bottom: 40px;
    margin-left: 30px;
}

.year-header {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 3px solid #ab947e;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.weeks-list ul {
    list-style-type: none;
}

.weeks-list a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
    /*padding: 5px 0;*/
}

.weeks-list a:hover {
    color: #ab947e;
    text-decoration: underline;
}

.week-info {
    font-size: 16px;
}

.week-count {
    font-size: 14px;
    color: #6c757d;
    margin-left: 10px;
}

.back-to-archive {
    margin-bottom: 20px;
}

.back-to-archive a {
    color: #ab947e;
    text-decoration: none;
    font-weight: bold;
}

.back-to-archive a:hover {
    text-decoration: underline;
}

.week-view-header {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.week-view-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.no-articles {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
}
/* TOP RESEARCH TOPICS (thinktank.php */
/* Additional styling for topics display */
.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.topic-info {
    flex: 1;
    margin-right: 15px;
}

.topic-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 3px;
    line-height: 1.3;
}

.topic-count {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.no-topics {
    color: #95a5a6;
    font-style: italic;
    text-align: center;
    padding: 20px;
}