/* Schools Page Styles */

/* about-hero/ Page Header */
.about-hero {
    position: relative;
    height: 600px;
    background: url("../../media/images/mro_CAD_overview.png") center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}


.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #1b81e72c, #003366d2);
}


.about-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;

}

.about-hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.about-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}


.about-hero .supporting-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto;
    font-style: italic;
}


/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 16px;
}

/* Intro Section */
.intro-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    margin-top: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.intro-section h2 {
    color: #003366;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
}

.intro-section p {
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.what-this-tracks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 0;
}

.what-this-tracks>div {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.what-this-tracks h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #003366;
    font-weight: 700;
}

.what-this-tracks ul {
    list-style: none;
    padding-left: 0;
}

.what-this-tracks li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    color: #555;
    font-size: 14px;
}

.what-this-tracks li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
    font-size: 14px;
}

/* Update Banner */
.update-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border-left: 4px solid #ffc107;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.15);
}

.update-banner strong {
    color: #856404;
    font-size: 15px;
}

.update-banner p {
    font-size: 14px;
    color: #856404;
    margin: 0;
}

/* Filters */
.filters {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: static;
    top: 70px;
    z-index: 100;
}

.filters h3 {
    color: #003366;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: #FF8C00;
}

.view-toggle {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.view-toggle button {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
}

.view-toggle button.active {
    background: #003366;
    color: white;
    border-color: #003366;
}

.view-toggle button:hover:not(.active) {
    border-color: #FF8C00;
    color: #FF8C00;
}

/* Country Cards */
.countries-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.country-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.country-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.country-card-header {
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    transition: background 0.2s;
    position: relative;
    width: 100%;
    border: 0;
    text-align: left;
}

.country-card-header:active {
    background: #f8f9fa;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.country-flag {
    font-size: 32px;
    line-height: 1;
}

.country-details {
    flex: 1;
}

.country-name {
    font-size: 17px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 4px;
}

.country-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.capacity-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.capacity-strong {
    background: #d4edda;
    color: #155724;
}

.capacity-developing {
    background: #fff3cd;
    color: #856404;
}

.capacity-limited {
    background: #f8d7da;
    color: #721c24;
}

.capacity-emerging {
    background: #d1ecf1;
    color: #0c5460;
}

.institution-count {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.expand-icon {
    font-size: 20px;
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.country-card-header.expanded .expand-icon {
    transform: rotate(180deg);
}

.country-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f8f9fa;
}

.country-content.show {
    max-height: 8000px;
}

.country-content-inner {
    padding: 16px;
}

.capacity-note {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.note-limited {
    background: #fff9e6;
    border-left: 3px solid #ffc107;
    color: #856404;
}

.note-developing {
    background: #e7f3ff;
    border-left: 3px solid #0066cc;
    color: #004080;
}

/* Workforce Signal Panel */
.workforce-signals {
    background: linear-gradient(135deg, #f0f8ff 0%, #e1f0ff 100%);
    border: 2px solid #0066cc;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.workforce-signals h4 {
    color: #003366;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 700;
}

.signal-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
}

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

.signal-label {
    font-size: 12px;
    font-weight: 700;
    color: #0066cc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.signal-value {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.demand-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.demand-high {
    background: #f8d7da;
    color: #721c24;
}

.demand-medium {
    background: #fff3cd;
    color: #856404;
}

.demand-low {
    background: #d4edda;
    color: #155724;
}

.demand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Institution Cards */
.institutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.institution-card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.institution-card:active {
    transform: scale(0.98);
}

.institution-name {
    font-size: 17px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 6px;
}

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

.institution-name a:hover {
    text-decoration: underline;
}

.institution-location {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.institution-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.info-tag {
    background: #e8f4fd;
    color: #0066cc;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.info-tag.type {
    background: #f0e6ff;
    color: #6b2fb5;
}

.institution-details {
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}

.detail-row {
    margin-bottom: 10px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.certifications-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cert-badge {
    background: #f0f0f0;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.cert-badge.part66 {
    background: #d4edda;
    color: #155724;
}

.cert-badge.ame {
    background: #d1ecf1;
    color: #0c5460;
}

.output-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    background: #e8f4fd;
    color: #0066cc;
}

.institution-metadata {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 11px;
    color: #999;
}

.metadata-item {
    margin-bottom: 4px;
}

.confidence-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.confidence-high {
    background: #d4edda;
    color: #155724;
}

.confidence-medium {
    background: #fff3cd;
    color: #856404;
}

.confidence-low {
    background: #f8d7da;
    color: #721c24;
}


/* Understanding section cards */
.understanding-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
}

.understanding-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f0f4f8;
    border-radius: 8px;
    align-items: flex-start;
}

.understanding-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.understanding-text h3 {
    font-size: 15px;
    margin-bottom: 4px;
    color: #003366;
    font-weight: 700;
}

.understanding-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Footer how we get our data link */

.data-source-link {
    color: #FF8C00;
    text-decoration: underline;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
}

/* Tablet (641px+) */
@media (min-width: 641px) {
    .about-hero {
        padding: 80px 20px;
    }

    .about-hero h1 {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .about-hero p {
        font-size: 20px;
    }

    .container {
        padding: 40px 24px;
    }

    .intro-section {
        padding: 30px;
    }

    .what-this-tracks {
        grid-template-columns: 1fr;
    }

    .understanding-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .countries-list {
        gap: 16px;
    }

    .country-card-header {
        padding: 20px;
    }

    .institutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .about-hero h1 {
        font-size: 70px;
    }

    .about-hero p {
        font-size: 28px;
    }

    .trust-strip-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .institutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /*
    .governance-grid {
        grid-template-columns: repeat(3, 1fr);
    }*/

}
