/* V2 Front Page and Footer Stylesheet - Extracted from Inline Styles */

.front-section {
    max-width: 1100px;
    margin: 0 auto;
}

/* 1. Catalog / Products Section */
.catalog-section {
    padding: 56px 48px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title {
    font-size: 26px;
    margin-top: 8px;
    font-family: var(--font-serif);
}

.view-all-link {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--color-primary-dark);
}

.catalog-grid {
    padding: 0;
}

/* 2. Institution / Darzeliams Section */
.institution-section {
    margin: 40px auto;
    padding: 0 48px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.institution-banner {
    background: linear-gradient(135deg, #1b4332, #2d6a4f, #40916c);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    border-radius: 24px;
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 16px 40px rgba(45, 106, 79, 0.22);
}

.institution-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    font-family: var(--font-serif);
}

.institution-subtitle {
    font-size: 14px;
    color: #d8f3dc;
    line-height: 1.6;
    margin-bottom: 16px;
}

.institution-features {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.institution-feature {
    color: #fff;
    background: rgba(255,255,255,0.12);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

.institution-btn {
    background: #fff;
    color: #1b4332;
    padding: 14px 32px;
    border-radius: 35px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.institution-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

/* 3. Psychology / Metodika Section */
.psychology-section {
    padding: 64px 48px;
    text-align: center;
}

.psychology-title {
    font-size: 28px;
    margin: 10px 0 8px;
    font-family: var(--font-serif);
}

.psychology-desc {
    font-size: 16px;
    color: var(--color-muted);
    margin-bottom: 40px;
}

.psychology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.psychology-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 28px;
    border: 1px solid rgba(240, 230, 216, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.psychology-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.psychology-card:hover::before {
    opacity: 1;
}

.psychology-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(231,111,81,0.12);
    border-color: rgba(231,111,81,0.2);
}

.psychology-card-icon {
    font-size: 32px;
    background: var(--color-primary-light);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 22px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.psychology-card:hover .psychology-card-icon {
    transform: rotate(12deg) scale(1.1);
}

.psychology-card-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.psychology-card-text {
    font-size: 13.5px;
    color: var(--color-muted);
    line-height: 1.6;
}

.psychology-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--color-accent-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.psychology-link:hover {
    color: var(--color-accent-blue-light);
}

/* 4. Tips / Blog Section */
.tips-section {
    padding: 0 48px 56px;
}

.tips-badge {
    background: #f0e6ff;
    color: #6b21a8;
}

.tips-title {
    font-size: 26px;
    margin: 10px 0 20px;
    font-family: var(--font-serif);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tips-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(240, 230, 216, 0.8);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tips-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(107, 33, 168, 0.08);
    border-color: rgba(107, 33, 168, 0.22);
}

.tips-card-icon {
    font-size: 26px;
    flex-shrink: 0;
    background: #f3e8ff;
    color: #6b21a8;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tips-card:hover .tips-card-icon {
    transform: rotate(-12deg) scale(1.1);
}

.tips-card-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 4px;
}

.tips-card-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.tips-card-link:hover {
    color: var(--color-primary);
}

.tips-card-text {
    font-size: 13.5px;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.tips-card-more {
    display: inline-block;
    margin-top: auto;
    font-size: 13.5px;
    color: #6b21a8;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tips-card-more:hover {
    color: #4c1d95;
}

/* 5. Footer Styles (V2 Extra) */
.site-footer {
    background: #1a1a2e;
    color: #888;
    text-align: center;
    padding: 32px;
    font-size: 12px;
    margin-top: 64px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.footer-logo-span {
    color: var(--color-secondary);
}

.footer-tagline {
    color: #aaa;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-link {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-copy {
    margin-top: 12px;
}

/* Mobile Responsiveness for Front Page elements */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .institution-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 20px;
    }
    
    .psychology-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-section, .institution-section, .psychology-section, .tips-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}
