/* ISOC Brand Palette & Style Adaptation */
:root {
    --isoc-blue: #24366e;
    --isoc-dark-blue: #1a2950;
    --isoc-black: #24366e;
    --isoc-gray: #24366e;
    --isoc-light-gray: #eff2ec;
    --isoc-black: #0c1c2c;
    --isoc-border-color: #d1d9e6;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.06);
    
    --urgent-accent: #c0392b;
    --event-accent: #2980b9;
    --survey-accent: #f39c12;
    --ongoing-accent: #27ae60;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--isoc-light-gray);
    color: var(--isoc-black);
    color: #24366e;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    margin: 0 auto;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 4rem 1rem;
    margin: 2rem auto;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.no-results-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.no-results i {
    font-size: 1.5rem;
    color: var(--isoc-blue);
    opacity: 0.8;
}

.no-results h3 {
    color: var(--isoc-black);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.no-results p {
    color: var(--isoc-gray);
    font-size: 1.1rem;
    margin: 0.5rem 0 1.5rem;
    max-width: 80%;
}

#reset-filters-btn {
    background-color: white;
    color: var(--isoc-blue);
    border: 1px solid var(--isoc-border-color);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

#reset-filters-btn:hover {
    background-color: #f8f9fa;
    border-color: var(--isoc-blue);
    color: var(--isoc-dark-blue);
    text-decoration: none;
}

#reset-filters-btn:active {
    transform: translateY(0);
    background-color: #f1f3f5;
}

/* Top Navigation Menu */
.top-nav {
    background-color: var(--isoc-black);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo styles */
.top-nav .logo-link {
    padding: 5px 0;
}

.top-nav .nav-logo {
    height: 30px;
    width: auto;
    vertical-align: middle;
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    color: var(--isoc-light-gray);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--isoc-light-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1101;
}

/* Mobile Menu Styles */
@media (max-width: 1024px) {
    
    .top-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        padding: 10px 0;
    }
    /* push your page content down by the height of the nav */
    .container {
        padding-top: 60px; 
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1101;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--isoc-black);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: right 0.3s ease-in-out;
        z-index: 1099;
        overflow-y: auto;
        margin: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    /* When menu is active (open) */
    .nav-links.active {
        right: 0;
    }
    
    /* Add overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1098;
    }
    
    .nav-overlay.active {
        display: block;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 15px;
        margin: 5px 0;
        color: var(--isoc-light-gray);
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }
    
    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

   .section-header {
        padding-left: 10px;
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .top-nav {
        justify-content: center;
    }
    
    .top-nav::before {
        content: '';
        position: absolute;
        left: 20px;
        width: 50px;
        height: 1px;
    }
}

.top-nav a {
    color: var(--isoc-light-gray);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-weight: 600;
    border-radius: 0.25rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Logo styles */
.top-nav .logo-link {
    padding: 5px 15px;
}

.top-nav .nav-logo {
    height: 30px;
    width: auto;
    vertical-align: middle;
}

/* Navigation links */
.top-nav > a:not(.logo-link) {
    margin: 0 5px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

/* Adjust link styles for mobile */
@media (max-width: 1024px) {
    .nav-links a:not(.logo-link) {
        width: 100%;
        padding: 12px 15px;
        margin: 5px 0;
    }
}

.top-nav > a:not(.logo-link):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-nav a:hover {
    color: #fff;
}

header {
    text-align: center;
    margin: 0 0 40px 0;
    padding: 60px 20px;
    background-image: url('../img/header-background.webp');
    background-position: center center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-size: cover;
    color: #eff2ec;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(36, 54, 110, 0.3);
    z-index: 0;
}

header > * {
    position: relative;
    z-index: 1;
}

header h1 {
    color: #eff2ec;
    font-size: 2.8em;
    margin: 0;
    letter-spacing: 0;
    font-family: 'Hind', Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.3em;
}

header p {
    font-size: 1.1em;
    color: #eff2ec;
    max-width: 700px;
    margin: 20px auto 20px;
    opacity: 0.8;
}

.header-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff2ec;
    color: var(--isoc-blue);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-filter-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.header-filter-button i {
    font-size: 1.1em;
}

/* Header filter button badge */
.header-filter-button {
    position: relative;
}

.header-filter-button .filter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background-color: var(--urgent-accent);
    border-radius: 50%;
    border: 2px solid var(--isoc-light-gray);
    display: none;
    pointer-events: none;
}

section {
    padding: 20px; /* Offset for sticky nav */
    margin: auto;
    max-width: 1024px;
}

.section-header {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--isoc-border-color);
    display: flex;
    align-items: center;
}

.section-header .icon {
    margin-right: 15px;
    font-size: 0.9em;
}

#urgent .section-header { border-color: var(--urgent-accent); color: var(--urgent-accent); }
#events .section-header { border-color: var(--event-accent); color: var(--event-accent); }
#surveys .section-header { border-color: var(--survey-accent); color: var(--survey-accent); }
#ongoing .section-header { border-color: var(--ongoing-accent); color: var(--ongoing-accent); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.action-card {
    background-color: var(--card-background);
    border: 1px solid var(--isoc-border-color);
    border-radius: 0.25rem;
    box-shadow: 0 4px 8px var(--shadow-color);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-color);
}

.action-card h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
color: #24366e;
}

.action-card h3 a.card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.action-card h3 a.card-title-link:hover {
    color: var(--isoc-blue);
    text-decoration: underline;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8em;
    font-weight: 500;
    background-color: #f0f4f8;
    color: #3d5a80;
}

.tag i {
    margin-right: 4px;
    font-size: 0.9em;
}

.tag-region {
    background-color: #e3f2fd;
    color: #1565c0;
}

.tag-issue {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.tag-date {
    background-color: #fff3e0;
    color: #e65100;
}

.date-past {
    color: #e65100;
    font-size: 0.9em;
    font-weight: 500;
}

/* Date styles */
.action-card .date {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
}

.action-card .date .icon {
    margin-top: 2px;
}

.action-card .date strong {
    color: #333;
    margin-right: 4px;
}

.action-card .date .date-date {
    color: inherit;
    font-weight: normal;
}

.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--isoc-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-toggle:hover {
    background: var(--isoc-dark-blue);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.filter-toggle i {
    font-size: 20px;
    transition: all 0.2s ease;
}

/* Estilo del botón de filtros */
.filter-toggle .filter-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 12px;
    height: 12px;
    background-color: var(--urgent-accent);
    border-radius: 50%;
    border: 2px solid var(--isoc-light-gray);
    display: none;
    pointer-events: none;
}

.filter-toggle.active {
    background: var(--isoc-blue);
    color: white;
    border-color: var(--isoc-blue);
}

.filter-toggle.active .filter-badge {
    border-color: var(--isoc-blue);
}

/* View Toggle Styles */
.view-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 10px 0;
    position: sticky;
    top: 60px;
    background: var(--isoc-light-gray);
    z-index: 10;
}

.view-toggle {
    display: flex;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--isoc-border-color);
    box-shadow: 0 1px 3px var(--shadow-color);
}

.view-option {
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--isoc-gray);
    transition: all 0.2s ease;
    border-right: 1px solid var(--isoc-border-color);
}

.view-option:last-child {
    border-right: none;
}

.view-option:hover {
    background-color: var(--isoc-light-gray);
}

.view-option.active {
    background-color: var(--isoc-blue);
    color: white;
}

.view-option i {
    font-size: 14px;
}

/* Section header */
.section-header-container {
    margin-bottom: 15px;
}

/* Table view styles */
.view-table .card-grid {
    display: none !important;
}

.view-table .table-container {
    display: block !important;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.table-container {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card-grid {
    display: grid;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.view-table .card-grid {
    display: none !important;
    opacity: 0;
}

.section-content {
    margin-top: 15px;
}

/* Filter Section Styles */
.filter-section {
    background: white;
    border-radius: 12px;
    position: fixed;
    width: 320px;
    max-width: calc(100vw - 60px);
    min-height: 200px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid #e9ecef;
    animation: slideUp 0.2s ease-out;
}

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

.filter-group {
    margin-bottom: 20px;
}

.filter-group h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: var(--isoc-gray);
    font-weight: 600;
}

.region-filters,
.issue-filters,
.role-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    padding: 8px 16px;
    background: #f5f7fa;
    border: 1px solid #e1e4e8;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    user-select: none;
}

.filter-option:hover {
    background: #e9ecef;
}

.filter-option.selected {
    background: var(--isoc-blue);
    color: white;
    border-color: var(--isoc-blue);
}

.filter-option.region {
    border-radius: 20px 4px 20px 4px;
}

.filter-option.issue {
    border-radius: 4px 20px 4px 20px;
}

.filter-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.filter-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-button:not(.secondary) {
    background: var(--isoc-blue);
    color: white;
}

.filter-button.secondary {
    background: #f5f7fa;
    color: var(--isoc-gray);
}

.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Active filters indicator */
.active-filters {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--isoc-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.active-filters.visible {
    transform: translateY(0);
    opacity: 1;
}

.active-filters i {
    font-size: 1.2em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section {
        padding: 5px;
    }
    
    .view-controls {
        top: 60px;
        padding: 8px 0;
    }
    
    .view-option {
        padding: 6px 12px;
        font-size: 13px;
    }

    .action-card {
        padding: 20px;
    }

    .action-card h3 {
        font-size: 1.1em;
    }

    .action-card li {
        font-size: 0.9em;
    }

    .cta-button {
        font-size: 0.9em;
    }
    
    /* Mobile filter adjustments */
    .filter-section {
        width: calc(100vw - 40px) !important;
        max-width: none !important;
        left: 20px !important;
        right: 20px !important;
        transform: none !important;
        top: auto !important;
        bottom: 100px !important;
    }
    
    .filter-toggle {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .filter-toggle i {
        font-size: 18px;
    }
    
    .active-filters {
        bottom: 80px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .filter-section {
        width: calc(100vw - 20px) !important;
        left: 10px !important;
        right: 10px !important;
        padding: 20px !important;
    }
}

/* Table View Styles */
.opportunity-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.opportunity-table th,
.opportunity-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--isoc-border-color);
}

.opportunity-table th {
    background-color: var(--isoc-blue);
    color: white;
    font-weight: 600;
}

.opportunity-table tr:last-child td {
    border-bottom: none;
}

.opportunity-table tr:hover {
    background-color: rgba(36, 54, 110, 0.03);
}

.opportunity-table td.title-column {
    padding: 12px 15px !important;
}

.title-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.title-container .title-link,
.title-container .title-text {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    color: var(--isoc-blue);
    text-decoration: none;
    line-height: 1.3;
}

.table-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.table-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.5;
}

.table-category.region {
    background-color: #e3f2fd;
    color: #1565c0;
}

.table-category.issue {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.table-category.who {
    background-color: #f3e5f5;
    color: #6a1b9a;
}

/* Column widths */
.opportunity-table th:first-child,
.opportunity-table td:first-child {
    width: 25%;
    min-width: 200px;
    vertical-align: top;
    padding: 12px 15px;
}

.opportunity-table th:nth-child(2),
.opportunity-table td:nth-child(2) {
    width: 60%;
    min-width: 300px;
    padding: 12px 15px;
}

.opportunity-table th:last-child,
.opportunity-table td:last-child {
    width: 15%;
    min-width: 100px;
    white-space: nowrap;
    padding: 12px 15px;
}

.opportunity-table .title-link {
    color: var(--isoc-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.opportunity-table .title-link:hover {
    color: var(--isoc-dark-blue);
    text-decoration: underline;
}

.opportunity-table .action-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--isoc-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.opportunity-table .action-link:hover {
    background-color: var(--isoc-dark-blue);
}

/* Table styles */
.opportunity-table {
    display: none;
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    table-layout: auto; /* Allow table to adjust column widths based on content */
    min-width: 0; /* Allow table to be smaller than container */
}

/* Table container for horizontal scrolling */
.table-container {
    width: 100%;
    margin: 20px 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Enable horizontal scrolling only on mobile */
@media (max-width: 1024px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    /* Make sure the table takes full width when scrolling */
    .opportunity-table {
        min-width: 100%;
    }
}

/* When table view is active */
.view-table .opportunity-table {
    display: table;
    width: 100%;
}

/* Table header styles */
.opportunity-table th {
    background-color: var(--isoc-blue);
    color: white;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

/* Table cell styles */
.opportunity-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    word-wrap: break-word; /* Ensure long words wrap */
    overflow-wrap: break-word; /* For better word breaking */
}

/* Set specific widths for columns */
.opportunity-table th:first-child,
.opportunity-table td:first-child {
    width: 20%;
    min-width: 150px;
    max-width: 250px;
}

.opportunity-table th:nth-child(2),
.opportunity-table td:nth-child(2) {
    width: auto; /* Let the description take remaining space */
    min-width: 200px;
}

.opportunity-table th:nth-child(3),
.opportunity-table td:nth-child(3) {
    width: 15%;
    min-width: 120px;
    white-space: nowrap;
}

.opportunity-table th:last-child,
.opportunity-table td:last-child {
    width: 15%;
    min-width: 100px;
    white-space: nowrap;
}

/* Alternate row colors */
.opportunity-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.opportunity-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Responsive adjustments for tables */
@media (max-width: 768px) {
    .table-container {
        margin: 0;
        width: calc(100% + 30px);
    }
    
    .opportunity-table {
        margin: 0;
    }
    
    .opportunity-table th,
    .opportunity-table td {
        padding: 10px 12px;
        font-size: 0.85em;
    }
}

.view-table .opportunities-grid {
    display: none;
}

.filter-toggle.active i {
    transform: rotate(90deg);
}

/* Audience Tags */
.who-can-join {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed var(--isoc-border-color);
}

.audience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* Discover All Button */
.discover-all-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px;
    width: 100%;
}

.discover-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #3a4b8a; /* Lighter blue than --isoc-blue */
    color: white;
    border: none;
    padding: 10px 24px 10px 22px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.discover-all-button:hover {
    background: #4a5b9a; /* Slightly darker on hover */
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.discover-all-button i {
    font-size: 1em;
    transition: transform 0.2s ease;
}

.discover-all-button:hover i {
    transform: scale(1.05);
}

/* Table view specific styles */
.table-container + .discover-all-container {
    margin-top: 3em;
    margin-bottom: 5px;
}

.audience-tag {
    display: inline-block;
    background-color: #e9f5ff;
    color: var(--isoc-blue);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid rgba(0, 115, 184, 0.2);
    transition: all 0.2s ease;
}

.audience-tag:hover {
    background-color: #d0e9ff;
    transform: translateY(-1px);
}

/* NEW pill styles */
.new-pill {
    display: inline-flex;
    align-items: center;
    background-color: #e8f5e9;
    color: #2e7d32;
    font-size: 0.6em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 6px;
}

/* NEW pill in table view */
.opportunity-table .new-pill {
    font-size: 0.55em;
    padding: 1px 5px;
    margin-left: 4px;
}

/* Active filters indicator */
.active-filters {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--isoc-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.active-filters.visible {
    transform: translateY(0);
    opacity: 1;
}

.active-filters i {
    font-size: 1.2em;
}

.filter-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.filter-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-button:not(.secondary) {
    background: var(--isoc-blue);
    color: white;
}

.filter-button.secondary {
    background: #f5f7fa;
    color: var(--isoc-gray);
}

.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.action-card li {
    padding-left: 32px;
    position: relative;
    margin-bottom: 12px;
    font-size: 1em;
    color: var(--isoc-gray);
    font-weight: 400;
}

.action-card li .icon {
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    text-align: center;
    color: var(--isoc-blue);
}

.action-card li strong {
    color: var(--isoc-black);
    font-weight: 600;
}

/* Card header with calendar icon */
.action-card .card-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.action-card .card-header h3 {
    margin: 0;
    padding-right: 30px; /* Space for the calendar icon */
}

/* Calendar icon styles */
.add-to-calendar {
    position: absolute;
    top: 4px;
    right: -5px;
    color: var(--isoc-blue);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0.8;
}

.add-to-calendar:hover {
    color: var(--isoc-dark-blue);
    background-color: rgba(36, 54, 110, 0.1);
    opacity: 1;
    transform: scale(1.1);
}

.add-to-calendar i {
    font-size: 20px;
}

/* Footer Styles */
.site-footer {
    background-color: #0b1c2d;
    padding: 20px 0 6em 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.footer-content a {
    color: #94a9bb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-separator {
    margin: 0 10px;
    color: #94a9bb;
}

.cta-button {
    display: inline-block;
    background-color: var(--isoc-blue);
    color: white;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    border-radius: 0.25rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    margin-top: auto;
    border: none;
}

.cta-button .icon {
    margin-right: 8px;
}

.cta-button:hover {
    background-color: var(--isoc-dark-blue);
}

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

@media (max-width: 768px) {
    header h1 { font-size: 2.2em; }
    .card-grid { grid-template-columns: 1fr; }
}

/* Audience link and modal styles */
.action-card .card-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(36, 54, 110, 0.1);
}

.audience-link-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 5px;
}

.audience-link {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.8em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    opacity: 0.8;
}

.audience-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--isoc-blue);
}

.audience-link i {
    font-size: 0.9em;
}

/* Modal styles */
.audience-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000; /* Ensure it's above other content */
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.audience-modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.audience-modal * {
    box-sizing: border-box;
}

/* Ensure the modal is always on top */
.audience-modal {
    position: fixed !important;
}

.audience-modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease-out;
}

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

.audience-modal h3 {
    margin-top: 0;
    color: var(--isoc-blue);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.audience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.audience-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    padding-left: 0;
}

.audience-list li:last-child {
    border-bottom: none;
}

.audience-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.audience-modal-close:hover {
    color: #333;
}

/* Subscription Modal Styles */
.subscription-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.subscription-modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.subscription-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 90%;
    width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: subscriptionModalFadeIn 0.25s ease-out;
}

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

.subscription-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    line-height: 1;
}

.subscription-modal-close:hover {
    color: #333;
}

.subscription-header {
    text-align: center;
    margin-bottom: 30px;
}

.subscription-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--isoc-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.subscription-icon i {
    font-size: 24px;
}

.subscription-header h3 {
    margin: 0 0 10px;
    color: var(--isoc-blue);
    font-size: 1.5em;
    font-weight: 600;
}

.subscription-description {
    color: #666;
    margin: 0;
    font-size: 1.05em;
}

.subscription-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.subscription-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.subscription-section h4 {
    margin: 0 0 15px;
    color: var(--isoc-blue);
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscription-section h4 i {
    font-size: 0.9em;
}

.url-copy-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.feed-url-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e4e8;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9em;
    background: #f8f9fa;
    color: #333;
}

.feed-url-input:focus {
    outline: none;
    border-color: var(--isoc-blue);
    background: white;
}

.copy-url-btn {
    padding: 12px 20px;
    background: var(--isoc-blue);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-url-btn:hover {
    background: var(--isoc-dark-blue);
    transform: translateY(-1px);
}

.copy-url-btn.copied {
    background: #28a745;
}

.copy-instruction {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

.quick-subscribe-description {
    color: #666;
    margin: 0 0 15px;
    font-size: 0.95em;
}

.popular-apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.app-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 15px 16px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: left;
}

.app-link:hover {
    border-color: var(--isoc-blue);
    background: white;
    color: var(--isoc-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-link i {
    font-size: 1.2em;
}

.manual-instructions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.instruction-content p {
    margin: 0 0 10px;
    color: #333;
}

.instruction-content ol {
    margin: 0;
    padding-left: 20px;
}

.instruction-content li {
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Responsive adjustments for subscription modal */
@media (max-width: 600px) {
    .subscription-modal-content {
        width: 95%;
        padding: 25px 20px;
        max-height: 90vh;
    }
    
    .popular-apps {
        grid-template-columns: 1fr;
    }
    
    .url-copy-container {
        flex-direction: column;
    }
    
    .copy-url-btn {
        justify-content: center;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .audience-link span {
        display: none;
    }
    
    .audience-link i {
        margin-right: 0;
    }
    
    .audience-modal-content {
        width: 90%;
        padding: 20px 15px;
    }
    
    .subscription-modal-content {
        width: 95%;
        padding: 20px 15px;
    }
    
    .subscription-icon {
        width: 50px;
        height: 50px;
    }
    
    .subscription-icon i {
        font-size: 20px;
    }
}
