/* Institutions Page Styles */

/* Import CSS Variables */
:root {
    --primary-color: #ff5722;
    --bg-dark: #0a0a0a;
    --bg-secondary: #161616;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --success: #4caf50;
    --danger: #f44336;
    --chart-line: #ff5722;
    --glow-color: rgba(255, 87, 34, 0.5);
    
    /* Spacing Variables */
    --container-max-width: 1200px;
    --container-padding: 2rem;
    --container-padding-tablet: 1.5rem;
    --container-padding-mobile: 1rem;
    --container-padding-small: 0.875rem;
    
    --section-padding-y: 5rem;
    --section-padding-y-tablet: 4rem;
    --section-padding-y-mobile: 3rem;
    --section-padding-y-small: 2.5rem;
    
    --nav-padding: 2rem;
    --nav-padding-large: 1.5rem;
    --nav-padding-medium: 1.25rem;
    --nav-padding-tablet: 1rem;
    --nav-padding-mobile: 0.875rem;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Active nav link */
.nav-menu a.active {
    color: var(--primary-color);
}

/* Hero Section */
.institutions-hero {
    background-color: #080808;
    padding: var(--section-padding-y) 0 4rem;
    text-align: center;
    margin-top: 80px;
}

.institutions-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.alert-banner {
    background: linear-gradient(135deg, rgba(255, 73, 24, 0.2) 0%, rgba(255, 73, 24, 0.1) 100%);
    border: 1px solid rgba(255, 73, 24, 0.3);
    border-radius: 8px;
    padding: 2rem;
    margin: 0 auto 3rem;
    max-width: 900px;
}

.alert-banner p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Speak with us button specific overrides */
.speak-with-us-btn {
    margin: 1rem 0;
}

/* Use Cases Section */
.use-cases {
    background-color: #0a0a0a;
    padding: var(--section-padding-y) 0;
}

.use-cases h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 4rem;
}

.use-cases-table {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background-color: rgba(255, 255, 255, 0.05);
}

.column-header {
    padding: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.column-header:last-child {
    border-right: none;
}

.column-header.use-case-header {
    color: var(--primary-color);
}

.column-header.benefits-header {
    color: var(--text-primary);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.use-case-item {
    padding: 1.5rem 2rem;
    color: var(--text-secondary);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.6;
}

.use-case-item:last-child {
    border-right: none;
}

.table-row:nth-child(1) .use-case-item:first-child {
    background-color: rgba(255, 73, 24, 0.1);
    color: var(--text-primary);
}

/* Institutional Features Section */
.institutional-features {
    background-color: #080808;
    padding: var(--section-padding-y) 0;
}

.institutional-features h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 4rem;
}

/* Main features grid - 3 cards */
.main-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Bottom features grid - 2 cards */
.bottom-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: left;
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1rem;
}

.feature-card li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Composable Clearing Section */
.composable-clearing-section {
    margin: 4rem 0;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.clearing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.clearing-header .feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.clearing-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.clearing-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.clearing-sub-features {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    gap: 0;
}

.clearing-sub-feature {
    flex: 1;
    text-align: left;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--primary-color);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.clearing-sub-feature:last-child {
    border-right: none;
}

.clearing-sub-feature h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

/* Compliance and Risk Section */
.compliance-risk {
    background-color: #0a0a0a;
    padding: var(--section-padding-y) 0;
    text-align: center;
}

.compliance-risk h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.compliance-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.compliance-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 48px;
    isolation: isolate;
    width: 233px;
    height: 278px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.compliance-card::before {
    content: '';
    position: absolute;
    width: 236px;
    height: 236px;
    right: -111px;
    bottom: -164px;
    background: #FF4918;
    opacity: 0.35;
    filter: blur(40px);
    border-radius: 694px;
    flex: none;
    order: 0;
    flex-grow: 0;
    z-index: 0;
}

.compliance-card::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    left: -159px;
    bottom: -201px;
    background: #DDDDDD;
    opacity: 0.1;
    filter: blur(45px);
    border-radius: 694px;
    flex: none;
    order: 1;
    flex-grow: 0;
    z-index: 1;
}

.compliance-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px 0px 0px 8px;
    width: 185px;
    height: 88px;
    flex: none;
    order: 2;
    align-self: stretch;
    flex-grow: 0;
    z-index: 2;
    position: relative;
}

.compliance-card-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 8px;
    width: 177px;
    height: 88px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.compliance-card h3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    width: 177px;
    height: 32px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    font-family: 'Suisse Intl Trial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 32px;
    display: flex;
    align-items: center;
    text-transform: capitalize;
    color: #FFFFFF;
    margin: 0;
}

.compliance-card p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    width: 177px;
    height: 48px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    font-family: 'Suisse Intl Trial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.view-risk-docs-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    margin: 1rem auto;
}

.view-risk-docs-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Get Started Section */
.get-started {
    background: radial-gradient(92.57% 103.37% at 50.03% 50.06%, rgba(255, 73, 24, 0.10) 24.65%, rgba(255, 73, 24, 0.50) 73.32%, #FFF 100%);
    padding: var(--section-padding-y) 0;
    text-align: center;
}

.get-started h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
}

.get-started-steps {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: left;
}

.step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.step p {
    color: white;
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

.get-started-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

/* Request demo button inherits from unified style */

.send-message-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
}

.send-message-btn:hover {
    background-color: white;
    color: #000;
}

/* Responsive Design */
@media (max-width: 1440px) {
    .container {
        padding: 0 var(--container-padding-tablet);
    }
}

@media (max-width: 1200px) {
    .main-features-grid {
        gap: 2.5rem;
    }
    
    .bottom-features-grid {
        gap: 2.5rem;
        max-width: 900px;
    }
    
    .compliance-cards {
        gap: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .main-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .bottom-features-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .clearing-sub-features {
        flex-wrap: wrap;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .clearing-sub-feature {
        flex: 0 0 calc(50% - 0.5px);
        border-right: 1px solid var(--primary-color);
        border-bottom: 1px solid var(--primary-color);
        margin: 0 -1px -1px 0;
        min-height: auto;
        padding: 1.75rem 1.25rem;
        text-align: center;
    }
    
    .clearing-sub-feature:nth-child(even) {
        border-right: none;
    }
    
    .clearing-sub-feature:nth-child(3) {
        border-bottom: none;
        flex: 0 0 100%;
        border-right: none;
        text-align: center;
    }
    
    .compliance-cards {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .compliance-card {
        max-width: 400px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--container-padding-mobile);
    }
    
    .institutions-hero {
        padding: var(--section-padding-y-tablet) 0 3rem;
    }
    
    .institutions-hero h1 {
        font-size: clamp(2.25rem, 5vw, 3rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        margin-bottom: 2.5rem;
    }
    
    .alert-banner {
        padding: 1.5rem;
        border-radius: 6px;
        margin: 0 0.5rem 3rem;
    }
    
    .alert-banner p {
        font-size: clamp(0.9rem, 2.2vw, 1rem);
    }
    
    /* Use Cases Table Mobile - Using same structure as Why Jetstream */
    .use-cases {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: var(--section-padding-y-mobile) var(--container-padding-mobile);
        gap: 48px;
        width: 100%;
        max-width: 393px;
        height: auto;
        background: #0a0a0a;
        margin: 0 auto;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .use-cases h2 {
        width: 319px;
        height: auto;
        font-family: 'Suisse Intl Trial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        font-style: normal;
        font-weight: 500;
        font-size: 36px;
        line-height: 120%;
        display: flex;
        align-items: center;
        text-align: center;
        letter-spacing: 0.04em;
        color: #FFFFFF;
        margin: 0;
        max-width: 319px;
    }
    
    /* Use Cases Table Container Mobile */
    .use-cases-table {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0px;
        width: 100%;
        max-width: 353px;
        height: auto;
        border: none;
        border-radius: 0;
        overflow: visible;
        margin: 0 auto;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    /* Style table header for mobile */
    .use-cases-table .table-header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        background: none;
    }
    
    .column-header {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        padding: 16px 24px 32px;
        background: linear-gradient(180deg, rgba(254, 74, 0, 0.12) 0%, rgba(255, 255, 255, 0) 99.5%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        border-right: none;
        
        font-family: 'Suisse Intl Trial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        font-style: normal;
        font-weight: 500;
        font-size: 18px;
        line-height: 120%;
        color: #FF4918;
        text-align: left;
    }
    
    .column-header.use-case-header {
        text-shadow: 0px 0px 4px rgba(254, 74, 0, 0.75);
    }
    
    .column-header.benefits-header {
        /* Remove the drop-shadow effect */
        color: #FF4918;
    }
    
    /* Style table rows for mobile */
    .use-cases-table .table-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    
    .use-case-item {
        box-sizing: border-box;
        padding: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        border-right: none;
        
        font-family: 'Suisse Intl Trial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 16px;
        line-height: 160%;
        color: rgba(255, 255, 255, 0.75);
        text-align: left;
        margin: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-width: 0;
    }
    
    .use-case-item:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .main-features-grid,
    .bottom-features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .clearing-sub-features {
        flex-direction: column;
    }
    
    .clearing-sub-feature {
        flex: none;
        padding: 1.5rem;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid var(--primary-color);
        margin: 0;
    }
    
    .clearing-sub-feature:last-child {
        border-bottom: none;
    }
    
    .get-started-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--container-padding-small);
    }
    
    .institutions-hero {
        padding: var(--section-padding-y-small) 0 2.5rem;
    }
    
    .institutions-hero h1,
    .use-cases h2,
    .institutional-features h2,
    .compliance-risk h2,
    .get-started h2 {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
        line-height: 1.05;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 2.2vw, 1rem);
        line-height: 1.5;
    }
    
    .alert-banner {
        padding: 1.25rem;
        margin: 0 0.25rem 2.5rem;
    }
    
    .alert-banner p {
        font-size: clamp(0.875rem, 2vw, 0.95rem);
    }
    
    .feature-card {
        padding: 1.5rem;
        border-radius: 6px;
    }
    
    .feature-card h3 {
        font-size: clamp(1.125rem, 2.8vw, 1.25rem);
    }
    
    .feature-card li {
        font-size: clamp(0.875rem, 2vw, 0.95rem);
    }
    
    .compliance-card {
        padding: 1.75rem 1.25rem;
        max-width: none;
        width: calc(100% - 1rem);
        margin: 0 0.5rem;
    }
    
    .clearing-header h3 {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
    }
    
    .clearing-header p {
        font-size: clamp(0.9rem, 2.2vw, 1rem);
    }
    
    .clearing-sub-feature h4 {
        font-size: clamp(0.95rem, 2.2vw, 1rem);
    }
    
    .get-started-buttons {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .request-demo-btn,
    .send-message-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: clamp(0.9rem, 2vw, 1rem);
    }
}