/* Nexdesk About Page Styles */
/* Version: 1.0 */

:root {
    --nex-blue-500: #3b82f6;
    --nex-blue-600: #2563eb;
    --nex-purple-500: #8b5cf6;
    --nex-purple-600: #7c3aed;
    --nex-green-500: #22c55e;
    --nex-red-500: #ef4444;
    --nex-foreground: #0f172a;
    --nex-muted: #f1f5f9;
    --nex-muted-foreground: #64748b;
    --nex-border: #e2e8f0;
    --nex-card-bg: #ffffff;
    --nex-background: #ffffff;
}

/* Container */
.nexdesk-about-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nexdesk-about-page .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nexdesk-about-page .container {
        padding: 0 2rem;
    }
}

/* Hero Section */
.about-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.hero-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--nex-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

.gradient-text {
    background: linear-gradient(to right, var(--nex-blue-500), var(--nex-purple-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--nex-muted-foreground);
    line-height: 1.75;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.badge-secondary {
    background-color: var(--nex-muted);
    color: var(--nex-foreground);
}

.badge .icon-info {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.25rem;
}

/* Icons */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--nex-blue-500);
}

.icon-sm {
    width: 1rem;
    height: 1rem;
    color: var(--nex-muted-foreground);
}

/* About Sections */
.about-section {
    padding: 5rem 0;
}

.about-section:nth-child(odd) {
    background-color: rgba(241, 245, 249, 0.3);
}

/* Section Grid */
.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .section-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.section-grid-reverse .section-content {
    order: 1;
}

.section-grid-reverse .section-visual {
    order: 2;
}

@media (min-width: 1024px) {
    .section-grid-reverse .section-content {
        order: 2;
    }
    
    .section-grid-reverse .section-visual {
        order: 1;
    }
}

/* Section Content */
.section-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--nex-foreground);
    margin-bottom: 1rem;
}

.section-text {
    color: var(--nex-muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.section-text:last-of-type {
    margin-bottom: 0;
}

/* Cards */
.card {
    background-color: var(--nex-card-bg);
    border: 1px solid var(--nex-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-content {
    padding: 1.5rem;
}

/* Problem Card */
.problem-card {
    border-left: 4px solid var(--nex-red-500);
}

.problem-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nex-red-500);
    margin-bottom: 1rem;
}

.problem-header .icon-sm {
    color: var(--nex-red-500);
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
}

.problem-icon {
    color: var(--nex-red-500);
    font-weight: 700;
}

.problem-item span:last-child {
    color: var(--nex-foreground);
    font-size: 0.875rem;
}

/* Solution Card */
.solution-card {
    border-left: 4px solid var(--nex-green-500);
}

.solution-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nex-green-500);
    margin-bottom: 1rem;
}

.solution-header .icon-sm {
    color: var(--nex-green-500);
}

.solution-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(34, 197, 94, 0.1);
    border-radius: 0.5rem;
}

.solution-icon {
    color: var(--nex-green-500);
    font-weight: 700;
}

.solution-item span:last-child {
    color: var(--nex-foreground);
    font-size: 0.875rem;
}

/* Section Header (centered) */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-center {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--nex-foreground);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--nex-muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-card {
    background-color: var(--nex-card-bg);
    border: 1px solid var(--nex-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.value-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--nex-foreground);
    margin-bottom: 0.5rem;
}

.value-desc {
    font-size: 0.875rem;
    color: var(--nex-muted-foreground);
    line-height: 1.6;
    margin: 0;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--nex-blue-500), var(--nex-purple-600));
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, var(--nex-blue-500), var(--nex-purple-600));
    border: 3px solid var(--nex-background);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.timeline-content {
    background-color: var(--nex-card-bg);
    border: 1px solid var(--nex-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.timeline-date {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--nex-blue-500);
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--nex-foreground);
    margin-bottom: 0.25rem;
}

.timeline-desc {
    font-size: 0.875rem;
    color: var(--nex-muted-foreground);
    margin: 0;
}

/* Mission Section */
.mission-section {
    padding: 5rem 0;
}

.mission-card {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid var(--nex-border);
    border-radius: 1rem;
    padding: 3rem 2rem;
}

.mission-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
}

.mission-icon svg {
    width: 100%;
    height: 100%;
    color: var(--nex-blue-500);
}

.mission-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nex-foreground);
    margin-bottom: 1rem;
}

.mission-text {
    font-size: 1.125rem;
    color: var(--nex-muted-foreground);
    line-height: 1.75;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
}

.cta-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--nex-foreground);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--nex-muted-foreground);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(to right, var(--nex-blue-500), var(--nex-purple-600));
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button:hover {
    background: linear-gradient(to right, var(--nex-blue-600), var(--nex-purple-600));
    color: white;
}

.telegram-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.arrow-icon {
    width: 1rem;
    height: 1rem;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .nexdesk-about-page {
        --nex-foreground: #f8fafc;
        --nex-muted: #1e293b;
        --nex-muted-foreground: #94a3b8;
        --nex-border: #334155;
        --nex-card-bg: #0f172a;
        --nex-background: #020617;
    }
    
    .about-section:nth-child(odd) {
        background-color: rgba(30, 41, 59, 0.3);
    }
    
    .timeline-marker {
        border-color: var(--nex-background);
    }
}
/* ABOUT: force Astra into 1-column (no sidebar spacing) */
body.page-template-page-about .site-content .ast-container {
  display: block !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page-template-page-about #primary,
body.page-template-page-about .content-area,
body.page-template-page-about .site-main {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

body.page-template-page-about #secondary {
  display: none !important;
}

/* Center your About content column */
body.page-template-page-about .entry-content {
  max-width: 72rem !important; /* adjust if you want wider/narrower */
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
/* Keep header/footer container spacing normal on About */
body.page-template-page-about .nx-header .nx-container,
body.page-template-page-about .nx-footer .nx-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}
