/* About Page Styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--darkgray);
    color: var(--text-primary);
    line-height: 1.6;
}

main {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--pageheader-height));
}

#content-container {
    flex-grow: 1;
    width: 100%;
    padding: 0;
}

/* Hero Section */
#aboutHero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 6rem 2rem;
    margin-bottom: 6rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--gray) 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#aboutHero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(15, 132, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(127, 90, 240, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

#aboutHero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Styling */
section {
    max-width: 1400px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Content Layout */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

.section-content.reverse {
    direction: rtl;
}

.section-content.reverse > * {
    direction: ltr;
}

.text-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Mission Icon */
.mission-icon {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--hoverColor));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(15, 132, 255, 0.3);
}

.mission-icon svg {
    width: 80px;
    height: 80px;
    color: white;
}

/* Philosophy List */
.philosophy-list {
    list-style: none;
    padding: 0;
}

.philosophy-list li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.philosophy-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.philosophy-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Philosophy Visual */
.philosophy-visual {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto;
}

.visual-element {
    position: absolute;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--hoverColor));
    opacity: 0.8;
}

.visual-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    animation: float 3s ease-in-out infinite;
}

.visual-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60px;
    right: 0;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    animation: float 3s ease-in-out infinite 1s;
}

.visual-element:nth-child(3) {
    width: 100px;
    height: 60px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--hoverColor), var(--secondary));
    animation: float 3s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Offerings Grid */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

.offering-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}

.offering-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(15, 132, 255, 0.2), 0 0 0 1px rgba(15, 132, 255, 0.1);
}

.offering-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--tertiary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.offering-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
    margin: 0 auto 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.offering-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.offering-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Community Section */
#communitySection {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.community-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--hoverColor));
    color: white;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 132, 255, 0.3);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.secondary-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 1200px) {
    .offerings-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #aboutHero {
        padding: 2rem 1rem;
        margin-bottom: 3rem;
        gap: 1.5rem;
        min-height: auto;
    }
    
    #aboutHero h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    section {
        padding: 0 1rem;
        margin-bottom: 4rem;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .section-content.reverse {
        direction: ltr;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .text-content h2 {
        font-size: 1.8rem;
    }

    /* Hide image content on mobile for cleaner layout */
    .image-content {
        display: none;
    }

    .offerings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .offering-card {
        padding: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    #communitySection {
        padding: 2rem 1rem;
    }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
    #aboutHero {
        padding: 1.5rem 0.75rem;
        margin-bottom: 2rem;
        gap: 1.25rem;
    }
    
    #aboutHero h1 {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    section {
        padding: 0 0.75rem;
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .text-content h2 {
        font-size: 1.5rem;
    }

    .offering-card {
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    #communitySection {
        padding: 1.5rem 0.75rem;
    }
}