/* Custom styles for page ID 76 - Komunitní centrum Na Půdě */

/* Prefix: np- */
/* Primary Color: #16a34a (Green) */

/* ===== Hero Section ===== */
.np-hero {
    background: #ffffff;
    padding: 4rem 2rem 3rem;
}

.np-hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.np-hero__text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
}

.np-hero__title {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin: 0;
}

.np-hero__subtitle {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.np-hero__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.np-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #1e293b;
}

.np-feature i {
    color: #16a34a;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.np-hero__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    position: relative;
}

.np-hero__image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.15);
    transition: all 0.3s ease;
}

.np-hero__image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.2);
}

.np-hero__image--1 {
    margin-top: 2rem;
}

.np-hero__image--2 {
    margin-top: -2rem;
}

.np-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Contact Section ===== */
.np-contact-section {
    width: 100%;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    padding: 4rem 2rem;
    border-top: 1px solid #e5e7eb;
}

.np-contact-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
}

.np-contact-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(22, 163, 74, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.1);
}

.np-card-icon {
    width: 56px;
    height: 56px;
    background: transparent;
    border: 2px solid #16a34a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.np-card-icon i {
    color: #16a34a;
    font-size: 1.5rem;
}

.np-contact-card h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.np-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.np-contact-info p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.np-contact-info strong {
    color: #1e293b;
}

.np-info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.np-info-row i {
    color: #16a34a;
    width: 20px;
}

.np-info-row a {
    color: #16a34a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.np-info-row a:hover {
    color: #15803d;
    text-decoration: underline;
}

.np-office-hours {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.np-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1.5rem 0;
}

.np-quick-info {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.np-quick-info h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.np-quick-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #16a34a;
    border-radius: 2px;
}

.np-quick-info > p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.np-principles h4 {
    font-size: 1.125rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.np-principle-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.np-principle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(22, 163, 74, 0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.np-principle:hover {
    background: rgba(22, 163, 74, 0.1);
    transform: translateX(4px);
}

.np-principle i {
    color: #16a34a;
    font-size: 1.25rem;
}

.np-principle span {
    color: #1e293b;
    font-weight: 500;
}

/* ===== Spaces Section ===== */
.np-spaces-section {
    background: #ffffff;
    padding: 4rem 2rem;
}

.np-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.np-section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.np-section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #16a34a;
    border-radius: 2px;
}

.np-section-header p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

.np-spaces-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.np-space-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.np-space-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #16a34a;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.np-space-card:hover::before {
    transform: scaleX(1);
}

.np-space-card:hover {
    border-color: #16a34a;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
    transform: translateY(-4px);
}

.np-space-card i {
    font-size: 2.5rem;
    color: #16a34a;
    margin-bottom: 1rem;
}

.np-space-card h4 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.np-space-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ===== Activities Tabs Section ===== */
.np-activities-section {
    width: 100%;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    padding: 4rem 2rem;
    border-top: 1px solid #e5e7eb;
}

.np-tabs {
    max-width: 1400px;
    margin: 0 auto;
}

.np-tabs__nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
}

.np-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.np-tab-btn:hover {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.05);
}

.np-tab-btn.active {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

.np-tab-btn i {
    font-size: 1.25rem;
}

.np-tab-panel {
    display: none;
}

.np-tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.np-activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.np-activity-card {
    display: flex;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.np-activity-card:hover {
    border-color: #16a34a;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.1);
    transform: translateX(4px);
}

.np-activity-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.np-activity-card:hover .np-activity-icon {
    border-color: #16a34a;
}

.np-activity-icon i {
    color: #16a34a;
    font-size: 1.25rem;
}

.np-activity-card h4 {
    font-size: 1.125rem;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.np-activity-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ===== Rental Section ===== */
.np-rental-section {
    background: #ffffff;
    padding: 4rem 2rem;
}

.np-rental-benefits {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.np-benefit-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(22, 163, 74, 0.03);
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.np-benefit-card:hover {
    background: rgba(22, 163, 74, 0.08);
    border-color: #16a34a;
    transform: translateY(-4px);
}

.np-benefit-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 3px solid #16a34a;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.np-benefit-card:hover .np-benefit-icon {
    background: #16a34a;
    color: #ffffff;
}

.np-benefit-card h4 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.np-benefit-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA Section ===== */
.np-cta-section {
    background: #ffffff;
    padding: 4rem 2rem;
}

.np-cta-card {
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-radius: 2rem;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 8px 32px rgba(22, 163, 74, 0.2);
}

.np-cta-content h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.np-cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.np-cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #16a34a;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.np-cta-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0;
}

.np-cta-note i {
    color: rgba(255, 255, 255, 0.8);
}

.np-cta-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.np-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Responsive Design ===== */

@media (max-width: 1024px) {
    .np-hero__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .np-hero__images {
        order: -1;
    }

    .np-contact-grid {
        grid-template-columns: 1fr;
    }

    .np-spaces-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .np-activities-grid {
        grid-template-columns: 1fr;
    }

    .np-rental-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .np-cta-card {
        grid-template-columns: 1fr;
    }

    .np-cta-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .np-hero {
        padding: 3rem 1.5rem;
    }

    .np-hero__title {
        font-size: 2rem;
    }

    .np-hero__subtitle {
        font-size: 1rem;
    }

    .np-hero__images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .np-hero__image--1,
    .np-hero__image--2 {
        margin-top: 0;
    }

    .np-contact-section,
    .np-activities-section,
    .np-rental-section {
        padding: 3rem 1.5rem;
    }

    .np-spaces-section {
        padding: 3rem 1.5rem;
    }

    .np-section-header h2 {
        font-size: 1.75rem;
    }

    .np-spaces-grid {
        grid-template-columns: 1fr;
    }

    .np-tabs__nav {
        flex-direction: column;
        border-bottom: none;
        gap: 0.5rem;
    }

    .np-tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }

    .np-tab-btn.active {
        border-bottom: none;
        border-left-color: #16a34a;
        background: rgba(22, 163, 74, 0.1);
    }

    .np-principle-items {
        grid-template-columns: 1fr;
    }

    .np-rental-benefits {
        grid-template-columns: 1fr;
    }

    .np-cta-card {
        padding: 2rem;
    }

    .np-cta-content h2 {
        font-size: 1.5rem;
    }

    .np-cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        justify-content: center;
    }
}
