
/* ==========================================================================
   Resources & Support Pages Styles
   ========================================================================== */

.resource-main {
    background-color: var(--bg-dark);
}

/* Hero Section - Keeps dark background */
.page-hero {
    padding: clamp(7rem, 10vw, 12rem) 2rem clamp(3rem, 5vw, 6rem);
    text-align: center;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2.2rem, 6vw + 0.5rem, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Main Content Section - White Background like Product Page */
.page-content-section {
    padding: clamp(3rem, 5vw, 6rem) clamp(1rem, 3vw, 2rem) clamp(4rem, 7vw, 8rem);
    background-color: #ffffff;
    min-height: 50vh;
    border-radius: 0 0 40px 40px; /* Matching the product page rounded corners */
    position: relative;
    z-index: 1; /* Keep above footer */
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Accordion (FAQ) - Minimal Design */
.faq-category {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.faq-category-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: #000; /* As requested in the image */
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.accordion {
    display: flex;
    flex-direction: column;
}

.accordion-item {
    background: transparent;
    border-bottom: 1px solid #cbd5e1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    font-size: 1.3rem;
    color: #0f172a;
    transition: color 0.2s ease;
}

.accordion-header:hover {
    color: var(--accent-primary);
}

.accordion-header i,
.accordion-header .accordion-arrow,
.accordion-header svg {
    color: #0f172a;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-header i,
.accordion-item.active .accordion-header .accordion-arrow,
.accordion-item.active .accordion-header svg {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.accordion-body {
    padding: 0 0 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #475569;
    line-height: 1.6;
    font-size: 1rem;
}

.accordion-item.active .accordion-body {
    padding: 0 0 1.5rem;
    max-height: 500px;
}

/* Resource Cards (Whitepapers, Tech Center) - Light Theme */
.resource-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.res-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.res-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(16,185,129,0.1);
}

.res-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(16,185,129,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.res-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0f172a; /* Dark title */
}

.res-card p {
    color: #475569; /* Dark gray text */
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.res-card-action {
    color: var(--accent-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

.res-card-action:hover {
    color: #0ea5e9; /* Match primary hover */
}

/* Contact Form - Light Theme */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1rem;
    color: #0f172a;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #0ea5e9;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* Glossary - Light Theme */
.glossary-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.glossary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.glossary-nav a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.glossary-nav a:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.glossary-section {
    margin-bottom: 3rem;
}

.glossary-letter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.glossary-term {
    margin-bottom: 2rem;
}

.glossary-term h4 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.glossary-term p {
    color: #475569;
    line-height: 1.7;
}

/* Split Layout (Technical Center) */
.split-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media(min-width: 900px) {
    .split-section {
        flex-direction: row;
        gap: 4rem;
    }
}

.split-sidebar {
    flex: 0 0 250px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.dot-green {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
}

.split-content {
    flex: 1;
}

.section-heading {
    font-size: 2rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.section-heading.large {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

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

.tech-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(16,185,129,0.1);
}

.tech-card-icon {
    font-size: 1.5rem;
    color: #ff6b35; /* Blue icon color from image */
    margin-bottom: 1.5rem;
}

.tech-card h3 {
    font-size: 1.2rem;
    color: #0f172a;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.tech-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tech-download {
    color: #ff6b35; /* Blue link */
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tech-download:hover {
    color: #2563eb;
    text-decoration: underline;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 6rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.btn-pill-green {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: none;
    box-shadow: none;
}

.btn-pill-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #d64513 0%, #b83204 100%);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: inherit;
}

.btn-pill-green:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-pill-green:hover {
    transform: none;
    box-shadow: none;
    color: #fff;
}

/* Whitepapers specific */
.wp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.wp-card {
    display: flex;
    flex-direction: column;
}

.wp-card-img img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.wp-author {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.wp-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.wp-card p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Newsletter Form */
.newsletter-form {
    margin-top: 1rem;
    max-width: 600px;
}

.newsletter-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #cbd5e1;
    padding: 1rem 0;
    font-size: 1.2rem;
    color: #0f172a;
    background: transparent;
    outline: none;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-input:focus {
    border-bottom-color: var(--accent-primary);
}

.newsletter-help {
    font-size: 0.85rem;
    color: #64748b;
}

/* Minimal Contact Form */
.minimal-contact-form {
    max-width: 800px;
    margin-bottom: 2rem;
}

.form-row {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 0 0 100%;
}

.form-group.half-width {
    flex: 1;
    min-width: 250px;
}

.form-input-minimal {
    width: 100%;
    border: none;
    border-bottom: 1px solid #cbd5e1;
    padding: 1rem 0;
    font-size: 1.1rem;
    color: #0f172a;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
    resize: vertical;
}

.form-input-minimal::placeholder {
    color: #94a3b8;
}

.form-input-minimal:focus {
    border-bottom-color: var(--accent-primary);
}

.form-opt-in {
    margin-top: 3rem;
}

.opt-in-title {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.opt-in-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 1rem;
    cursor: pointer;
}

.opt-in-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.opt-in-disclaimer {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
}

.map-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    background: #f8fafc;
}

.map-wrapper iframe {
    width: 100%;
    height: 460px;
    display: block;
    border: none;
}

.map-wrapper img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 21/9;
}

/* Glossary Layout */
.glossary-index-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.glossary-index-pill {
    background: #f8fafc;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 1000px;
}

.glossary-index-pill a {
    color: #ff6b35; /* Blue text */
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

.glossary-index-pill a:hover {
    color: #1d4ed8;
}

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

.glossary-group {
    display: flex;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 0;
}

.glossary-group:first-child {
    border-top: none;
}

.glossary-letter-cell {
    flex: 0 0 150px;
}

.letter-box {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    color: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 400;
    border-radius: 4px;
}

.glossary-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.glossary-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media(min-width: 768px) {
    .glossary-item {
        flex-direction: row;
        gap: 2rem;
    }
}

.term-title {
    flex: 0 0 250px;
    font-size: 1.4rem;
    font-weight: 400;
    color: #0f172a;
}

.term-desc {
    flex: 1;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}
