/* Free Resources Section Styles */
.free-resources {
    padding: 60px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.free-resources.animated {
    opacity: 1;
    transform: translateY(0);
}

.free-resources .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.free-resources h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 30px;
    color: #282c4d;
    position: relative;
}

.zdarma-tag {
    background: #ff6b35;
    color: white;
    font-size: 14px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    display: inline-block;
    transform: rotate(3deg);
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    vertical-align: middle;
}

.resources-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: visible;
    /* Ensure no scrollbars */
    overflow-x: hidden;
    overflow-y: hidden;
}

.resources-text {
    flex: 1;
    max-width: 650px;
    margin-left: 320px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animation for text content coming from right */
.resources-text.emerge-from-right {
    opacity: 1;
    transform: translateX(0);
}

.resources-text p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #444;
}

/* Base style for avatar */
.resources-avatar {
    width: 300px;
    height: auto;
    flex-shrink: 0;
    position: absolute;
    left: -80px;
    bottom: auto;
    top: -80px; /* Moved higher to show full shoes */
    z-index: 1;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animation for avatar coming from left */
.resources-avatar.emerge-from-left {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Mobile animation for avatar */
@media (max-width: 768px) {
    .resources-avatar.emerge-from-left {
        transform: translateX(0) translateY(-30%);
    }
}

.resources-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resources-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 0;
    flex-grow: 1;
}

.resource-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
    position: relative;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.resource-item.emerge-from-right {
    opacity: 1;
    transform: translateX(0);
}

.resource-item-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.resource-button {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #282c4d;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    max-width: calc(100% - 10px);
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.3;
}

.resource-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.resource-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scale(0);
    transition: transform 0.4s ease;
    border-radius: 12px;
}

.resource-button:hover::after {
    transform: scale(1);
}

.resource-button.whatsapp {
    background: #25D366;
    color: white;
}

.resource-button.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.resource-button.download {
    background: #6c5ce7;
    color: white;
}

.button-icon {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-description {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
    text-align: left;
    margin-top: 5px;
}

.resource-bullets {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    width: 100%;
}

.resource-bullets li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.resource-bullets li:before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2334C759' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Mobile styles */
@media (max-width: 768px) {
    .free-resources {
        padding: 40px 0;
        position: relative;
        overflow: hidden;
    }
    
    .resources-content {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        justify-content: flex-start;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .resources-text {
        margin-left: 140px;
        z-index: 2;
        width: calc(100% - 155px); /* Account for the left margin and right padding */
        max-width: 100%;
        /* Keep the animation properties on mobile */
        opacity: 0;
        transform: translateX(80px);
    }
    
    .resources-avatar {
        width: 200px;
        height: auto;
        position: absolute;
        left: -60px;
        top: 50%;
        transform: translateX(-80px) translateY(-50%);
        opacity: 0;
        bottom: auto;
        z-index: 1;
    }
    
    .resources-text p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .resources-buttons {
        margin: 0 auto;
        width: 100%;
    }
    
    .resource-item {
        flex-direction: column;
        align-items: center;
    }
    
    .resource-item-content {
        width: 100%;
        align-items: flex-start;
    }
    
    .resource-button {
        padding: 10px 15px;
        font-size: 14px;
        width: 100%;
        max-width: 300px;
    }
    
    .resource-description {
        text-align: left;
        margin-top: 5px;
        width: 100%;
        max-width: 300px;
    }
    
    .resource-bullets {
        width: 100%;
        max-width: 280px;
        margin: 8px auto 0;
    }
    
    .resource-bullets li {
        justify-content: flex-start;
        text-align: left;
        flex-direction: row;
        margin-bottom: 5px;
    }
    
    .button-icon {
        width: 20px;
        height: 20px;
    }
    
    .free-resources h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }
}
